Is Consciousness is just your brain working all together?

Is Consciousness just your brain wiring or its something beyond your brain like the spiritual people say?

Edit: if consciousness is beyond the brain why does it fade/malfunction when any harm is done to the brain?