Name the gland which secretes many hormones and controls the function of other endocrine glands:

Pituitary glands

Pancreas

Thyroid glands

None of these