Thanks for writing to health care magic.
I think you might have had a sprain
of your ankle.
But one should rule out bone injury
in such cases.
I request you to consult your doctor who after examination may order a X ray
if required. If no bony injury is detected he may give you analgesics and rest advise if required.
Hope this helps.