maybe because he was your boyfriend, you are feeling the loss of that relationship despite what happened. lonliness does weird things to people. they are able to overlook a multitude of sins of their partner rather than face the idea of being alone. focusing on the negative things he did to you should rid you of the desire to contact him. take care of yourself. if you are not in counseling, get some.