You are most likely suffering from gout. In this condition there can be sudden deposition of
uric acid crystals in your joints.
For current pain you need to take analgesics for till the pain goes away. Follow strictly low purine diet (search the internet for it).
Next Steps
Visit an orthopaedic surgeon nearby for proper examination.
Health Tips
Alcohol is an important culprit in precipitation of gout attacks. Avoid it.