The reason he said those things is because he got fed up with feeling rejected by you and now he may want you feel that same feelings if you think he was in love with you then he probably is still in love or has love for you but doesn't trust you right now so you are going to have to get that trust back and it will be a gradual thing it's not going to happen over night and go right back to the way things were in the beginning you have to start all over. I have complied some steps in which you can take to win him back:
First, start by working on yourself and your behavior that caused the break up. This is what is keeping him from coming back he didn't like the person you had become so identify the behavior and work on it.
Second, try being his friend and not asking for a relationship! Make him see who he fell in love with in the first place, what about you attracted him and follow that example.
Third, some men don't like for a woman to beg for them to come back sometimes they see that as weakness and disparity, so don't do it even when the urge hits you to do so.
Four, win back his trust, tell him the truth whether you want to or not the truth is always better than a lie, even if you did it to get a reaction you got the wrong reaction and now you have to show him that you have matured and have grown and learned from your behavior.
Five, if you haven't already you have to leave go of anything about that other guy and only concentrate on winning him back. He felt like the third wheel and this is what pushed him away.
I have also given you some websites that may help you also: