What you need to do is clear your mind. Shut it off. You need to be comfortable and relaxed. Imagine being somewhere you enjoy, like the beach or at a campfire. Only think about that place. Play the noises that would occur there over and over in your head.
if you are having problems like this everynight, I'd suggest talking to your doctor. I take trazadone and once I take it I can't help but not fall asleep.