Welcome to Healthcare Magic
What is your age. Is there any weight loss
. Any other health problem. You could be having a problem in your spine which is causing compression of the nerves of your legs which make them painful. You need to avoid lifting heavy weight. You should avoid sudden movements of your spine like bending movements. You can take Paracetamol
for pain relief for now, under medical supervision. Consult an Orthopaedician for proper examination and diagnosis and appropriate treatment.