It maybe a fracture or a ligament injury. You need to get it evaluated.
Next Steps
Get xray of your foot (ap and oblique views), apply ice 5-6times a day, take mild painkillers and keep your foot elevated over a couple of pillows until you get your xrays.