Thanks for writing the query.
Wisdom tooth is the last tooth to erupt in the oral cavity.
As wisdom tooth area is inaccessible and difficult to clean infection in this area is very common,therefore wisdom tooth eruption
is associated with pain,swelling and discomfort,which is known as pericoronotis also.
In case of impacted wisdom tooth
pain discomfort and difficult mouth opening is very common.
Impaction of wisdom toth could be horizontal,vertical,distal,or mesial.
So i would suggest you consult an oral and maxillofacial surgeon as they are specialist in this field,and get your teeth clinically examined and x-ray of the same tooth also.
For pain and infection you can ask your dentist
for a course of antibiotic and analgesic
,to prevent infection and relieve the pain.
Meanwhile you can use lukewarm saline rinses and can also take antiseptic mouth rinses
3-4 times a day.
Hope this will be helpful.