It's a little hard to tell from your description what part of your leg got hurt, so I recommend that you discuss this with your primary care doctor
. If your knee is hurting and you heard a popping noise, you may well have torn your meniscus or your anterior cruciate ligament. These will often cause a lot of pain when you try to stand on the leg, and can cause a feeling of instability of the joint. If your calf rather than your knee is hurting, you most likely strained one of the muscles in the calf. Same goes for your ankle; you could have sprained any of the ligaments/tendons of the ankle, and if your symptoms are bad enough it could be that you tore one of these structures. The popping noise can suggest a more serious injury
with tear rather than a sprain, however more than the popping noise, the degree of your symptoms is what matters: can you bear weight, do you have full range of motion of the joint, and is it getting slowly better with rest, ice and elevation. If your pain is not getting better, you feel that the joint is unstable, or you are unable to bear weight or resume your regular activities, you should go see your primary care doctor to have them examine the joint. They can assess whether it is likely that you tore anything, and at the very least can refer you to physical therapy if the pain is not improving.