how does consciousness is created
Answers
The standard materialist position is that consciousness is tied up with the brain. There is plenty of evidence that the brain influences consciousness (and vice versa!), ranging from studies of brain damage to the well-known effects of mind-altering chemicals.
The problem with going any further than this correlational fact is that no one knows how to define consciousness from an objective, third-person perspective. We only have access to one consciousness: our own. Every other consciousness is in a sense inferred from behavior. This process of inference is a social process, which is why the debate on animal consciousness is unlikely to end any time soon. We treat people as conscious because they seem conscious to us, and this seeming is a product of both our evolved perceptual systems and the cultural systems that operate on top of them. The fact that people disagree about whether a particular animal species is conscious or not suggests that there is no universal intuition about consciousness.