Its because of ankle sprain leading to swelling & pain. Consult a physiotherapist.
Next Steps
Go to a physiotherapist.. Ultrasonic therapy +wax therapy +some strengthening exercises will be helpful for sure.
Health Tips
At home.. Rest +hot water fomentation +pain killer gel +no long standing/leg hanging /walking /driving +no cold exposure +use crepe bandage +keep the limb elevated.