@Madi16,
It's been 5 months. You were not in mourning for a lost relationship; you were trying, wishing, hoping to get back with your ex.
Your ex, instead, did what really should be done at the end of relationships - he mourned and he moved on.
Now, take the next 5 months. And instead of pining for what you can't have, throw yourself into other things. I don't mean other relationships. I mean - do your schoolwork, exercise, help out an elderly person in your neighborhood, get a job, learn to cook, whatever. In short, do things that do not have him - or thinking about him - in them. You need to break this cycle. You are addicted to thinking about him, being with him, etc., but he no longer returns your affections. I am sorry. But it is over. And you need to move on.