A situation that we do not understand well leads to the motivation to learn, which leads to the modification of schemas.
Piaget says that we are motivated to learn when existing schemas do not allow us to make sense of something new, which leads to an unpleasant feeling called disequilibrium.
To escape disequilibrium, the schemas need to be changed to make sense of the new information (through assimilation and accommodation). By doing this, we achieve equilibration, the preferred mental state.