Thanks for writing to us.
Since you are having pain in foot along with swelling & restriction of movement, possibility of fracture
, ligament injury
, soft tissue injury
cannot be ruled out. It would be better that you get Xray done. There could be fracture major or small hair line fracture. If you are vitamin D deficient than there is possibility that you are more prone to fractures
Wish you good health.