I will assume you have wisdom teeth that are only partially erupted into the mouth. The following answer could be wrong if there is some other reason for your pain.
Partially erupted wisdom teeth will have some gum covering part of the tooth. Food debris and bacteria can collect under this gum and cause a painful infection.
Cleaning the debris from under the gum will help some, but can be painful due to the swelling from the infection. The area is difficult to reach. You may have some success using a water pick type instrument to flush water in the area under the gum. Hydrogen peroxide swished in the area can sometimes bubble stuff out.
A trip to the emergency room for antibiotics can help with the infection.
An advantage of being an established patient of a dentist is that you can call him for an antibiotic prescription.
It can get really bad fast sometimes. The sooner you get to a dentist, the better. Make it a priority.