You may have dental caries
which has resulted in the pain. Consult your dentist
to determine the extent of caries by an X ray
. If the caries is deep the tooth should be root canal
treated and capped. If the tooth is destructed largely it has to be extracted. pain killers can relieve pain temporarily only.