You can follow, what we call as "sleep hygiene" to get a good night's sleep.
Some precautions which are included in sleep hygiene are:
Keeping sleep time and waking up times fixed
Switching of all electronic screens 1 hour prior to sleep time
Avoiding caffeinated drinks in the evening and after
Remaining active in the daytime
Make the bedroom conducive to sleep, ie the room should be airy, with appropriate temperature, with no bright lights or loud noises
If unable to get sleep for 10 to 15 mins, do not remain in bed
Get up and walk about, you may have a glass of warm milk, listen to soft music, etc. Thereafter try again to sleep
Avoid clock watching
However if your problem persists despite this, it is better to consult a mental health professional for the same.
Next Steps
follow sleep hygeine