I have trouble falling and staying asleep, which it turns out are two different types of insomnia. I've been treated for it before but currently I'm off my medications. Things that my doc told me that help:
1. Use the bed ONLY for sleeping. (Have a significant other? Use the bed ONLY for sleeping. No sex. No reading books. No surfing the web.)
2. Try to establish a set bed time and wake time and stick to it.
3. Do not eat food nor drink caffeinated beverages 3 hours before bed.