Thanks! That helps a lot!
If the pain is provoked by biting, it may be related to occlusal interference of new restoration. If the pain is spontaneous, it may be caused by caries or pulpal pathology. You may need to see an endodontist to evaluate pulp state.