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

Thyroid glands

Pancreas

Pituitary glands

None of these