Sharp pains

Im 24 weeks and yestorday at church I was sitting and bent over to pick up something my 3 year old dropped. When I did I had this sharp pain shot from my stomach into my butt. It actually felt like it was in my butthole (sorry) then today I was in the tub and went to sit down and I had a sharp pain from my stomach into my vagina ( again sorry) but baby has still be just as active. What could it be?