First and foremost is timely intervention by an expert. Take yourself to a dentist and they will suggest the right treatment option for you. Doctors may suggest a root canal, adjusting dental restoration, etc depending on the conditions. You may be also advised to take pain medications