You can get over a relationship by making sure that you cut all your communications. You also need to get rid of anything that reminds you of the relationship. You can also move far away so that you do not see each other.
I know this sounds funny. But girls think that eating lots of ice cream helps. Try not to think about them anymore and just focus on what's more important to you like school or your job and family. Thinking about them continually won't help. I've never had a boyfriend so i don't know. But I learn from people.