I sounds like you are experiencing nerve compression. As a result, there is abnormal conduction through the nerve in your leg. This is possibly the cause of your pain. You need to be evaluated by your physician. Please make an appointment to address this problem as soon as possible.
Wishing you the best,