pain in the legs can be because of many reasons , systemic conditions like
thyroid ,
diabetes , vit d deficiency, bone weakness, muscle weakness and back problems . ,please explain your problem in detail where exactly pain is by doing what it increases or decreases any associated fever, loss of weight.
Next Steps
please visit an orthopaedic surgeon
Health Tips
leg exercises ans physio with strengthening of legs