The solution is always, "Sleep with another girl."
Too many guys focus on trying to get a single girl who won't sleep with him. Try once, and if it doesn't work, the solution is simple and always the same: Sleep with another girl. If you can't do that, start with that problem. When a girl says no, you're usually done with her and you need to find someone new. You cannot sell a product to a person who is not in the market for that product, no matter how bad you want to make the sale.
The best way to get over someone is to get under someone else.
This advice is hard to take at first. I heard variants of it when I was a teenager and didn't want to take it then. Now it seems so obvious to me that I've almost forgotten how hard it is for most guys.
"Sleep with another girl" is also one of the many reasons a man shouldn't marry. If he marries, he's likely impeding his ability to sleep with new women. Marriage is no upside and extensive downsides for men. Don't do that.