Burning While Trying Sex??

So today my boyfriend and I tried having sex for the first time but first of all, it wouldn't go in and when he did try to put pressure and push it in, it burnt SO bad. He only did that once because it hurt so bad my legs were shaking and I started crying afterward. The pain was like a burning sensation and it was very painful. Any idea what this could be and how to fix this???