Pain.
I haven't publicly stated this before now: Consciousness requires the ability to perceive PAIN.
All human learning is based upon the single kernel of pain (vs pleasure).
A newborn is hungry or cold and cried. It learned to cry. It learned to smile. Eventually, delayed gratification lead to less pain (more pleasure).
The rest is human history.