As it is often the case with "near synonyms", the difference between the terms is not so much in the objects they denote than in the point of view they represent: "Engine" evokes the fact that the contraption in cause is the fruit of human genius (rather than nature), while "motor" is the pragmatic, functional word for the "black box" that drives something.