Like CANDC said you're gonna want to try lifestyle changes first, in addition to what he wrote make sure you have no caffeine after about 2pm, and stay away from anything with a lit screen after 6pm-ish, and take a hot shower in the evening (the cooling down tends to make people sleepy). If that doesn't work go to a doctor, and ask about medications. I will give you my personal experience with severe insomnia, that temazepam is about the only thing that works for me, but if you're in the grand old usa you'll need to go through a few other meds first to get a prior auth to actually be able to pick up the script.