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