Sleeplessness is horrible and brings with it all sorts of problems. I don't know why this is happening to you, but I believe that sleep will come, eventually.
Unfortunately, the harder you try to sleep, the more it will undoubtedly evade you. And medications will only help in the short term, which does have its place, though the long term effects are horrendous.
I can't explain how to get good sleep. This time last year I was sleeping less than an hour a night and that lasted six months or so. I can't begin to explain how that affected me to those who haven't experienced sleep loss that has lasted months.
But eventually I did sleep. How? I'm not entirely sure I can explain how. Certainly not through medication. Rather by listening to my body and allowing my over active mind to do what it needed to do. By being open and not forcing or expecting anything. Sleep is a passive thing and can only be attained by not trying to achieve it.
See? I can't explain it and my experience is of little help. I kind of just stopped caring, accepted that I'd not sleep, gave up...and somehow, over time, slept.
So I can offer no practical help, other than to say sleep will come, it may not be enough, and you may suffer, but it will come enough to keep you alive and vaguely functional.
Good luck.