Ex boyfriend

I broke up with my long distance ex in December and I’m really missing him so badly but I don’t know what to do about it. I’ve been having trouble sleeping and focusing, I just can’t stop thinking about him. What should I do?