In this sense it works like the conductor of an orchestra. It’s important to realise that MIDI doesn’t contain any actual sound itself, it’s simply instructions for how other instruments should create sound. It consists of a set of digital signals that are used for controlling and playing electronic musical instruments.
MIDI stands for Musical Instrument Digital Interface.