Sounds like you may have pulled a muscle? So a physio would be good.

If you feel its not muscle and maybe something in your spine or pelvis maybe a chiro would be better.

Hope it eases or treatment helps.