It looks like that you are having nerve
compression in back and that is causing pain in your whole leg.You have not mentioned since how many days you are having these symptoms. If it is since more then a week then i would recommend you to get MRI
of the spine to check if there is nerve compression. If it is present then according to severity you would need treatment.
1. Drugs which are uses -pregabalin
will be needed.
3.If disc herniation is severe and not responding to physio and medicine then we have to think for surgery.