For a long while a few years ago I was dependent on temazepam to get to sleep. The doctor always warned against the danger if becoming addicted to it, but I argued I’d rather be an addict who slept then a non-addict who didn’t sleep. But obviously, it’s best to not be reliant on any sort of medication, ad I’m thankfully in a place now where I’m in a good sleeping pattern.
There’s lots of things that help. No caffeine after about 5pm, not eating late, getting exercise in the day, dimming the lights in the evening and turning the brightness down on the computer or TV screen, don’t watch TV or go on a computer when in bed, never look at the time during the night. And never, ever, toss & turn. There’s a book called Overcoming Insomnia by Colin Espie, and one of the things he says is to get up if you’re not asleep after 15 minutes or so. Do something relaxing like reading or doing a puzzle, and then only go back to bed when you’re feeling sleepy (not just tired, but actually sleepy).If you still don’t fall asleep after another quarter of an hour, get up & repeat the process. You want to be able to get your brain to associate being in bed with being asleep, not with lying awake.
I also find it helpful to give my brain something to concentrate on other than thinking about sleep. So I might listen to an audio book on my mp3, but with the volume really low so you have to concentrate to hear it. Or I do an equivalent of counting sheep, and countdown backwards from 1,000 in multiples of 3 (ie, 1000, 997, 994, 991 etc). I rarely make it out of the nine hundreds.
I hope they (& the book, if you get it) help, and you get some good kip : )