It seems you accidentally bit the inside of your mouth, causing a sore near your wisdom teeth. This can make chewing painful, and your cheek rubbing against the teeth may worsen the irritation. To help, rinse with warm salt water to keep the area clean and reduce swelling. Over-the-counter pain relievers like acetaminophen or ibuprofen can also ease the discomfort. Avoid spicy or acidic foods that can irritate the sore, and chew slowly to prevent further injury. If the pain persists or you notice signs of infection, such as increased swelling, redness, or pus, see a dentist promptly.