It won't go in

I had never had sex before and when I was about to lose my virginity with my boyfriend I couldn't take the pain it hurt to much he didn't even get the tip in it was very painful and not pleasing at at. What's wrong?