Visit the nearby dentist as soon as possible. They will take an x-ray of the affected tooth and evaluate whether to save the tooth or get it extracted. You can take an analgesic for the time being.
Next Steps
visit the dentist. they will also prescribe you proper medication after evaluating your case.
Health Tips
do not wait for the pain to be bad. get a regular check up done once in 6 months to prevent such kind of pain.