he discovered that the cortical field , which gave the human brain consciousness , was detachable from the brain ; that while it was in the brain , it was affected by physical stimuli , like chemicals and food , but once the brain died it was set free as a pure , rational mind- a ghost or spirit , you might say .