Hole may be a deep cavity, which is causing you pain. Get an IOPA X-RAY done. If it is a wisdom tooth extraction is preferred, if it is a 2nd molar Root canal treatment can be done.
Next Steps
Please stop chewing hard food from that side, rinse thoroughly after you eat. Take pain killer till you see a dentist.