You don't say how old you are, but if you are still in school, then you really shouldn't be dwelling on this. Dating is a process of trial and error. It helps you discover which character traits you like and which you don't. You will have dates with other boys and also experience more breakups. It is all part of life.
With regards no contact, it will be difficult as you are likely to see him in school. You should also not be doing this because you think it will get him back. No contact is all about helping you get through the breakup.
If you are hurting, minimise contact with your ex and hold your head up high if he walks past. Focus on your studies, your family, and friends. Don't dwell on the past. You have a great future ahead of you.