Sex Confusion?? Kind of


So I've only had sex about 5 or 6 times. I've only been with one person and sex has been really amazing most of the time. There have been a couple of times that it hurts though, usually we've been able to get past it and the sex ended up being great but the last time we had sex we didn't get past it and neither of us came. Now I'm kinda scared to have sex again, I'm worried it will hurt. So, what can I do to ease these fears? Or what can I do to avoid the pain? It mainly hurt when he would go all the way inside me like he was hitting my cervix or something. Any tips are appreciated!!