Most people have some sleep problems at some time in life. But if it is persistent, doctor evaluates whether the sleep problem is secondary to some other medical condition (such as
depression,
anxiety etc) or if sleep problem is not accompanied by any other medical issue.
If you don't feel tired during the day, if your work and social life is not affected, you can wait to see if your sleep problem goes away on its own.
If you have sadness, anxiety or any other complain, you should see a doctor. If it is sadness or anxiety, you should see a
psychiatrist.
In the meantime, you will benefit from some tips about sleep.
Do not take sleeping pills without doctor's advice. They can be habit forming and when used for long time may further disturb sleep.
Get up at the same time each day.
Avoid day time naps or keep day time naps to about half an hour.
Exercise regularly. This is important for overall health as well as sleep.
For an hour before sleep, don't watch TV / computer screen or mobile screen.
Don't take tea/coffee in evening/night.
Avoid bright light and noisy room for sleep.
Go to bed only when sleepy.
Don't lie in bed and 'try to sleep' if you are not falling asleep for long time in bed. Sit up and listen to music or read in soft light.
Don't keep looking at watch at night.
Develop a relaxing routine before sleep time.
Hope this answer is helfpul.