If the pain does not go away or if you find it difficult to open your mouth, you should see a dentist. They will be able to see the cause of the problem, and tell you what to do. It may help to clean around the tooth very thoroughly, and the dentist may give you a prescription for an antibiotic if required.