What's wrong with me?

So tonight my boyfriend and I Tryed having sex. For some reason I couldn't get wet and he put it in a few times but we both just couldn't. A little afterwards I started to get cramps and when I went to pee it hurt and burned. I've never had this type of problem after sex does someone know what this could be?