First, have you been to your doctor to make sure there is not a medical cause?
Poor sleep, insomnia is a real medical condition.
There are treatments available!
Develop good sleep habits. Do not consume caffeine/stimulants after about noon. Get some exercise in the fresh air every day, but, don’t exercise right before bed. Eat right, drink plenty of fluids during the day. Avoid alcohol in the hours before bed.
Make bedtime a non-negotiable. Go to bed at the same time and wake up at the same time every morning.
Make your bedroom a place for sleep, clean and uncluttered, clean sheets, good pillow, best mattress you can afford. Keep it cool in the room. We sleep best when it is below 70 degrees in the room. Dark and cool is best. Use a fan if you need to in order to get that cool breeze.
Bedtime routine the same, brush teeth, etc. Nighttime prayers. Reading is a good way to calm your mind, avoid electronics (if you have an ereader, use the blue light filter). I am particular to audio books. My library offers them for free. I put on a sleep timer and listen to a book, nothing too exciting, but, not too boring either.
Next morning, when you wake up have a routine. Morning prayers, maybe some exercises, then start the day.