See your dentist
There is a certain amount of discomfort when teeth erupt into the mouth.
The question is if they are erupting properly and have enough room to come in. If so then you can rinse with warm salt water and take meds like advil
) until they erupt. However, very often they hurt because there is not enough room to come in properly and an infection or cyst may be developing. In this case they should be remo.