A malfunctioning thyroid also plays a role in producing tooth decay and gum disease because the thyroid plays a role in maintaining blood calcium levels. To repair thyroid function, the anterior pituitary gland usually needs attention. People on medications that affect their thyroid can have significant tooth decay problems.