The best thing you can do is talk to him. It's not a guarantee that it will make him smile and talk to you again, but it's always worth a try. And if he agrees, then maybe you can slowly rebuild your friendship again. (Of course, it all depends on the reasons he didn't want to be friends anymore as well.) Hopefully, (in time) he will realize what a great person you truly are...again.