Disagree that not all motors are engines, I'd say motor is a subset of engine. An engine drives a process or system, either literally (producing power from some fuel or other energy source) or figuratively (as in Google's search engine). A motor is a type of engine that changes the momentum of some object.
This fits every definition I can think of.