That sounds like sciatic nerve. Pinched nerve in lower spine. Likely L5.
A pinched nerve can cause muscles to go into contraction and stay locked up.
John