How does the thyroid affect the body's metabolism and brain?