Motor and Solenoid Currents

When does a motor or solenoid maximize and minimize power?