You should consult a dentist. and you also should get one x-ray done to check the depth of carious part of the tooth. if the carious part has approached the pulp of the tooth then i can cause pain in molar tooth. you can send picture of your tooth or x-ray with us. so we can guide you for the treatment. either root canal treatment or extraction is the treatment.