Motivation is the driving force behind behaviour, thoughts or actions. It energizes behaviour and gives it direction towards a goal. The goal should be to satisfy a need. The need could be for hunger, thirst, pain avoidance, to achieve, to be competent, to be recognised by peers, and so on.
In a school setting, you can have pupils but whether they learn or not depends on their interests, their priorities, their attitudes and their values. Learners may be physically present in the classroom but their minds are absent