A pinched nerve can occur due to various reasons such as overuse of the leg, any injury or trauma caused to the leg, poor posture, osteoarthritis, stress, and sometimes due to pregnancy. It often causes an excruciating pain and numbness in the leg and hence, should be treated immediately, otherwise it can make the muscles of the leg dysfunctional.