pain during sex

so, my boyfriend an i we’re having sex and usually when he goes deep i like it but tonight when he did it it really hurt out of nowhere and we had to stop then my lower stomach started hurting a lot. i was wondering why this happened?? and is there anyway to help it or help the pain?