There’s a hole in my tooth. It hurts when I bite.

There is a hole in the tooth, pain when biting things may be caries, pulpitis and other diseases caused by the treatment are, respectively, caries for restorative treatment, root canal treatment for pulpitis, as follows.
1. Caries: after removing the decayed tooth tissue and decayed material, restorative treatment can be carried out. If the cavity is small, composite resin can be used for filling and restoration; if the cavity is large, inlay restoration, full crown restoration and other restorative methods can be chosen.
2. Pulpitis: Remove the inflamed pulp tissue and prepare the root canal into a shape that is convenient for filling, then use calcium hydroxide for root canal disinfection to remove bacteria and toxins in the root canal system, and finally use the root canal filling material to fill the root canal tightly in order to control the inflammation of the pulp and eliminate the pain symptoms.
It is recommended to visit a regular medical institution to receive professional treatment.