Hello and welcome to e health forum.
Pain in the ankle could be due to a lot of causes including muscle sprain or tendinitis.
For proper diagnosis, a physical examination and investigations like Xray might be helpful.
You might consult your doctor for the same at the earliest.
In the mean time, NSAIDs and Ice pack application to the affected area - might be helpful.