I am not sure if the brain is totally analogous to a computer but it certainly behaves like one in some respects. It seems to take input information from the environment, process that signal, store some information, send signals out to produce effects in the environment etc.
If we continue this hardware analogy, thinking about how human made computers work they do not function until they have been programmed to behave in a certain way, by writing code which defines their behaviour.
Obviously no one has written code that defines how humans behave but there are common routines that occur.
A simple example when we stand up there is a routine which is activated by the sudden loss of blood pressure which the brain responds to by causing the heart rate to increase, the heart to beat faster and other effects which restore the blood pressure. This happens basically every time except in disease states.
I understand this on a "hardware" level, there are baroreceptors in the aorta and carotid sinus that sense the drop in pressure and signal back to the solitary nucleus which somehow effects the changes mentioned above. But returning to the computer analogy above, if we simply connect a sensor and an effector to a computer nothing actually happens until it is programmed to behave in the way you expect.
Does the brain have something analogous to software in this way? How is that information stored? How is information like that transmitted through the genetic code?