Matt is correct, to a point.
DC motors work by flowing current in windings to create magnetic fields.
The spinning of the motor with the brushes limits the amount of time current can flow in one section before it get a break to cool. The spinning also creates more airflow and cooling effect.
There is an effect called CEMF caused by the building of the magnetic field as well. Once the Field is complete, this effect is reduced. This also limits current flow and thus heating.
If the motor is not turning the current flows in excess and will overheat the winding.
If the motor turns slowly the CEMF is very low and the brushes are in contact with a given winding longer, thus the winding can overheat.
The mass of the armature can absorb some heat and limits how fast this can happen.
An engine creeping along for more than a few feet under load can cause this, once you reach a low cruise speed it is not a problem.
The gearing in our engines ensures the motor is spinning much faster than the drive wheels.
Edited for spelling and format