Get diagnosed first
There are a number of things that can cause pain in the ankles and feet.
This is a very nonspecific symptom. I recommend that someone pain in these areas should be seen by orthopedic foot and ankle surgeon for a definitive diagnosis so that appropriate treatment can be started. You can find one in your area at www.Aofas.Org.