If he is that mad at you then just let him be. Guys are hard headed. Once he is calm he will call you and you can say whatever need be once that happens. But by trying to keep contacting him once he wants you to leave him alone is just making him mad again.
Go up to him at school/work. Or go to his house, and demand to know whats wrong. He's being childish if he won't talk to you. How can you fix the problem if you don't know what the problem is? Unless you did something really bad,then I understand where he's coming from. Or he might just be going through a tough situation with family/friends, n taking it out on you. Sorry, and good luck.
When he answers you ask him what is wrong.
Give him a few days to calm down, then try to get in touch with him again.
He just want 2 show you how your action irritates him, find some1 very close 2 him 2 talk 2 him, he will liston I assure you if only he still luv you. Goodluck
Next time you see him just try to ask him y he is mad and after that just try to work it out.