Cancer can originate in endocrine glands or spread to them from other parts of the body, disrupting their normal function. When cancer develops within an endocrine gland, it can alter the production of hormones, leading to a range of symptoms and health issues. For instance, a thyroid tumor can affect metabolism and energy levels.