Pain in tooth has some reasons like caries. However, that can be confirmed by the Doctor only. Medicines can help you to get relief but that depends on the severity of problem. If you are not relieved with the medications then treatment is the permenant and best option.