the 1st thing to find out reason of pain we need x-ray. depending on that there are multiple reason like caries involving root part, pus infection, gum infection ,fractured or crack tooth. once we find out reason we can do treatment according do that.