Follow sleep hygiene ie avoiding caffeine in evening, good room conditions like dark room and temperature control. Stress relaxation techniques also will help . If your problem persists despite all these ,then consult a Neurologist to evaluate your sleep problem and treatment accordingly.Choice of medications may vary depending upon your exact problem.
Next Steps
Consult a Neurologist or sleep specialist.