The function of the medulla, or the medulla oblongata is to control all the involuntary movements in the body. This includes things both serious and not so serious things, ranging from controling our breath and heart blood pumping, to simpler yet important things like blinking. If we don't control it wilfully, it's done by the medulla.