which side? ankle weakness or whole leg weakness?
1. brain
2. Spinal cord (cervical, thoracic or lumbar spine)
3. Peroneal nerve injury