Ive had stomach issues, chronic phlem and I gag and spit out mucus in the morning.  I had my wisdom teeth pulled in 2000.  One was left and when I touch it, it smells rotten.  Could this be the cause of my medical issues?  The gums around the tooth get irritated from time to time and I get headaches on occasion.
Hi. Welcome to Chat Doctor. I read your query. If your wisdom tooth has gums around it swollen repeatedly, this means you are having peritonitis. Removal of that tooth is the permanent solution. The pain from wisdom tooth can radiate upwards towards head and cause headache. If after removal of tooth, your headache persists, contact your physician for further check up. Also, your gastric troubles can also lead to tooth problems. Acid reflux in mouth can lead to erosion of teeth, discoloration, gum problems and bad breath. Consult a physician for its treatment. Maintain good oral hygiene. Brush twice daily. Use mouth wash or do warm saline rinses. Take healthy diet rich in minerals and vitamins. Have lots of fluids. Use mouthwash with sodium bicarbonate to neutralize acidic pH in your mouth. Chew sugarless gums. Hope the answer helps you. Thank you!