Diet, caffeine, and stress all play a part in insomnia. I find little trouble in going to sleep. It may be as my wife has pointed out that, being male, very little goes on in my head anyway!
Seriously though the observing the breath meditation and progressive relaxation technique both help to aid sleep and at least you end up in the alpha or theta state which helps physiological recovery.