It can simple ankle sprain or fracture. Icing is part of treatment along with rest, compression bandage, elevation of limb.
Next Steps
It's better to evaluate the case, get xray of ankle and better to avoid the game to diagnosis is made as it may worsen your problems. Pain killers can also be taken to reduce pain and swelling