He wont talk to me.

Im having problems with my childhood friend. We've known eachother since we were 10. He ran away from his home and I let him stay at my house, secretly. We got caught in the moment. At least I thought so.. We had sex and after that he wouldn't talk to me. I'm not sure why. Have you ever had this problem? How do I fix it? I'm scared if I am.