I know how that is. It’s especially horrible on school nights. I remember sitting in bed at 4 in the morning wide awake and extremely frustrated that I had school in 3 hours. Happened to me basically every night.
Practice meditation. I was going to recommend an herbal supplement that works incredibly well, but you should be older if your going to take it.
Look up how to meditate and do that every night right before bed, after taking a hot shower…that should help some.
Whatever you do, if some whacky doctor tries to give you pills to make you fall asleep, do NOT take them. You don’t need them and they are horrible for you. Also if you take those, they will probably kill your dream recall completely.
Exercise every day until you feel worn out. This is an important one. If you run lets say for 3 miles or so every day, it will leave you eagerly awaiting bed time by nightfall.
Sweet dreams