Could be a lot of things or mix of things. Stress, diet, no exercise. Try fixing these first and see what happens. For me I have sleep apnea which means I stop breathing many times during the night, causing me to not sleep well. Folks who snore especially may have this. I'd start with the basics above first and go from there.