My personal theory is consciousness is a coalescence of weighted distributions that learn via a closed loop feedback and an injection of true randomness via quantum tunneling. That is, the brain is a mechanism by which true randomness gets turned into a weighted distributions that equate to decisions and actions with a feedback loop. As experiences get encoded as complex neuron paths or "memories" (this includes things like muscle memory, not just what we normally think of as memories), they build stronger paths and more connections, effectively increasing their "weight". This holds true down to how neurons function on an individual level.