I have had extended bouts of insomnia for most of my mature adult life. Partly because of money/university worries, but I find earplugs and not listening/watching TV late at night makes a huge difference.