Welcome to icliniq.com.
I think firstly you should give some rest to the joint. Wait for three days for the inflammation to subside. You may have developed a sprain. In these three days, use a crepe bandage and do hot water fomentation.
After three days, see if the pain has come down. If it has not, we might need an x-ray to rule out the osteopathology.
In case after three days the pain comes down, then start first little warm-up for ankle and then start slow walks. Also, make a point to check your shoes, because if they have any problem, it might lead to pain again. Also, I would like to know if you have flat feet?