Did you get the impression he may have met someone else, was your relasionship serious, i mean was you just seeing him or was you girlfriend and boyfriend so to speak.
If you was getting on so well, something must have been going through his mind? Can i ask how old you and him are?
It could be that he has gotton scared of committment, you just cant tell.
I think its very out of order he sent you a text that is very cowardly to do that and very insensitive. I think you have a right to know and try speaking to him about it, just ask why. If he avoids you, then to be honest i dont think he is worth it, if he has a lot of luv for you then he wouldnt end things with you like this.
Good luck x