The functions of the medulla vary depending on the organ. In the brainstem, the medulla oblongata regulates autonomic functions. In the adrenal gland, it secretes hormones crucial for the fight-or-flight response. In the kidneys, it plays a vital role in urine concentration and electrolyte balance.