How does immobility of the muscular and skeletal systems occur?

Several ways. Injury, disease (stroke), treatment (cast), severe mental illness like depression or catatonic states. What specifically do you want to know?