In your situation, it might be difficult for your boyfriend to come back. Your reaction or attitude put him off.
You can try this technique. It's not evil but a healthy attempt to restore the relationship. Since he has closed all forms of communication, you should not contact him in other ways like using your friend's phone. This is known as no contact rule. During this time work on your attitude. At the end of two weeks, you can write a letter or use a friend's phone. Let him know you're sorry, ask for forgiveness for the kind of reaction you'd display, you've analyzed yourself and have corrected or changed your attitude and still are, and you pray for another chance because you love him and so on. He needs to know you've changed. Don't send another text or letter. Wait. If he doesn't respond wait for two or three days then send him another text. If he hasn't responded call him. If he doesn't answer, it's time to move on. Maybe he will contact you in the future. Even if he doesn't, the most important thing is to work on your attitude because you wouldn't want another relationship to end like this because of how you respond or react.