Why was sex painful?

Does anyone else have randomly painful sex, even though it’s usually completely pain free for me?

A friend mentioned the cervix moves up and down during one’s cycle

For example I usually enjoy doggy but instead was so painful I had to stop as it felt too much, lubrication was good and I was turned on though

Any thoughts?