Spinning motor generates a back EMF from the coil moving in a magnetic field ( basic electromagnetism) and as you load it the speed drops, so the back EMF drops and the opposing voltage drops so more current can flow in the motor, limited by the resistance. This increased current provides the force turning the coil so it provides more torque till the torque into the load equals the power applied.