Pain During Sex

So my boyfriend and I started to have sex and everything was fine at first but then it started to feel like he was hitting my bladder and then there was an uncomfortable pain a little lower and we had to stop. Can anyone tell me what this may be?