Sex help!!

During sex, I started feeling like it was hurting down there. But I also felt like I might have been about to orgasm. I got scared though and made him stop. We are new to having sex so can someone please explain! I feel stupid since I'm 20 and have no clue about any of this.