There isn't sufficient information to reach a specific diagnosis. I would advise you to visit a dentist so that you can be examined and undergo the necessary investigations to find the underlying cause of the problem and have it treated accordingly. You can apply ice indirectly to reduce the swelling and to reduce the pain for 10-15 mins 3-4 times a day. If the problem persists or worsens visit the ER at the earliest.
Next Steps
Follow the steps as advised
Health Tips
If condition persists or worsens visit the ER at the earliest