What could cause one leg to stop working?

Stroke. Stroke painless loss of one leg function i would have to go with a neurological disorder ms , stroke.