It can be due to exposure of dentin leading to the pulp /nerve becoming too close to the outer surface of the tooth.
Next Steps
Go to your dentist, get an x ray done, most probably it will go for root canal treatment.
Health Tips
U need to get it done soon. Ask for a specialist. For all your work. Endodontist and prosthodontist.