Weird pain?

So my husband and I were having sex. He was behind me in doggy style. And I felt this weird pain when he would thrust in. It wasn't really a bad pain. I felt it right where my stomach and the front of my private meet. It was kind of like a cramp and,then i felt like i had to pee. Any idea what was going on?