Take time to relax before going to bed. Drink a relaxing herbal tea or hot milk, try aromatherapy, meditate or pray. Do something that helps you relax.
If something is troubling you, tell yourself you will deal with it tomorrow, write it down or do something to help you get it off your mind.
Make sure that your bedroom and bed are comfortable and quiet.
Make sure that your mattress provides proper support.
Do moderate exercise regularly. The best time to exercise is in the late afternoon or early evening. Exercising later than this may disturb your sleep.
If you can’t sleep, get up and do something you find relaxing such as reading.