An ankle swelling normally occurs when your muscles are torn or overstretched at any point in time. If your joint is twisted such that your ligaments are injured, the bones connected at the joint will be affected. Ankle sprains can also cause your ankle to swell.
Muscle cramps occur when there is an involuntary and sudden contraction of a couple of muscles. Anytime you are caught in that sudden contraction, it becomes clearer to you that the pains can be severe. It is not considered a fatal bout of pain but it leads to a momentary inability to move the part of the body affected.