Hello, the blue light from your phone and gadgets makes the brain active and unable to relax. Try and keep your phone on night mode post 10pm.
Also, eating right and early, exercising in the morning and not at night, listening to soothing music, having some camomile tea, are some good practices to help good quality sleep.
Next Steps
If you are stressed and have too much on your mind, consult with a counsellor to help you with customized skills for your specific issues
Health Tips
Reduce usage of phone from evening onwards and do not resort to medicines without professional consult.
Hope this helps