Insomnia is linked with depression, if you have long term insomnia it is suggested to go to the sleep center to get an evaluation.
Another reason for insomnia, is hyper activeness, so you need to unwind, off all stimulation devices like computers television etc, so something very boring like...