The brain is far from being mapped out, and it is not at all understood how the brain forms consciousness, but this doesn't mean that nothing is understood or that isn't clear that the brain is responsible for information gathering, processing and response in both conscious and unconscious forms, unconscious processing/conscious experience of that information.
For instance.
Unconscious mind''Previous research has shown motor-related brain activity preceding conscious intent by a fraction of a second, but this study is the first to show unconscious predictive activity in a region associated with decision making—the prefrontal cortex—according to Haynes. The results support the notion that unconscious brain activity comes first and conscious experience follows as a result, says Patrick Haggard of University College London, who was not involved with the study. “We all think that we have a conscious free will,” he says. “However, this study shows that actions come from preconscious brain activity patterns and not from the person consciously thinking about what they are going to do.”
More:''Here we propose neural computations that can account for the formation of categorical decisions about sensory stimuli by accumulating information over time into a single quantity: the logarithm of the likelihood ratio favoring one alternative over another.We also review electrophysio-logical studies that have identified brain structures that may be involved in computing this sort of decision variable.The ideas presented constitute a framework for understanding how and where perceptual decisions are formed in the brain.''