If you're depressed or have some other mental disorder, then lack of sleep is most likely caused by that. Otherwise, try not to stay on the computer/phone for a while before you go to bed, take a relaxing hot bath or shower, and don't have too much caffeine around nighttime.
__________________
"I thought of you and the years and all the sadness fell away from me." David Gilmour, 1994
Pink Floyd Forever