The brain box (be it ECU or PCM) performs the following functions; It determines what position the gas pedal is at while idling; It controls the car's transmission, telling it when to switch gears; It controls all the accessories in your vehicle (windows, door-locks, sunroof etc)