Brains consist of cells called neurons and they connect with millions of other neurons and information gets transferred across connection gaps called synapses. Inside the cells data are processed which gives rise to an idea, concept or understanding.
Computers are built of hardware chips and the central processing unit (CPU) processes data after receiving them from the other chips. How it processes data consists of several steps but the main outline is that software programs are fed into the CPU and processed. They provide end result information depending on how the programs are furnished with data and what the query is that is fed into the system.