Eating Too Late At Night
Eating just before bedtime can lead to indigestion, heartburn, and acid reflux that can disrupt your sleep. Eating a big meal late at night can also cause digestive issues that can keep you awake. 
Not Exercising Regularly
Exercise increases your energy levels during the day and helps you sleep better at night. Not getting enough physical activity can lead to fatigue and difficulty falling and staying asleep.
Drinking Too Much Caffeine
Caffeine is a stimulant that can interfere with sleep. Avoid drinking caffeinated beverages, such as coffee, tea, and soda, in the late afternoon and evening.
Having An Irregular Sleep Schedule
Going to bed and waking up at the same time daily helps you maintain a regular sleep schedule. If you don't stick to a regular sleep schedule, it can lead to difficulty falling and staying asleep.
Staring At A Screen Before Bed
The blue light emitted from screens can interfere with the production of melatonin, a hormone that helps you fall asleep. Avoid watching TV, playing video games, and using your phone or tablet at least an hour before bedtime.
Conclusion
If you're having trouble sleeping, don't despair — many solutions are available. Talking to your doctor will help you find the best solution for your individual needs.