Take ibuprofen or acetaminophen. Both are strong pain relievers and available over the counter. Ice can also be applied to reduce inflammation and discomfort. Sleep as much as possible. If the filling occurred several days ago, contact the dentist to discuss whether there is other damage or something is wrong.