It's possible that you've pulled a muscle, or that your baby could even have dislocated a rib, but I think this is worth getting checked, since it could also be a kidney infection, which would need attention ASAP. Give your ob/midwife a call, or maybe just head into an urgent care clinic or something.
All the best!