Locked pelvis

I was on my feet working for 4 hours yesterday and came home dog tired... I got into bed and my pelvis was so locked up I couldn't move my legs or roll over. Doc said this stuff can happen.. Has it happened to anyone else?? It's so excruciating