Do you drink coffee after 3 pm? Do you have an alcoholic drink or two or three most nights? Do you drink water immediately before bed, triggering lots of bathroom breaks? Do you fail to get plenty of exercise? All of these habits can negatively affect your sleep, leaving you tossing and turning instead of catchings Zs.
While it's fine to have the occasional night out or late afternoon coffee date, if you want a better night's sleep, you need healthy habits. Cut out excessive alcohol, nighttime coffee, liquid before bed and eat a healthy and balanced diet.
If you're not big on exercise, start experimenting until you find an option that's right for you. There are strong correlations between adequate exercise and healthy sleep, so hitting the treadmill may appear in the form of benefits to falling asleep.
Bottom line, the better your lifestyle and habits, the more likely you are to get a good night's sleep.