It's a motor. Just kidding,
.
From webster.
Main Entry: 1mo·tor
Pronunciation: \ˈmō-tər\
Function: noun
Etymology: Latin, from movēre to move
Date: 1586
1 : one that imparts motion; specifically : prime mover
2 : any of various power units that develop energy or impart motion: as a : a small compact engine b : internal combustion engine; especially : a gasoline engine c : a rotating machine that transforms electrical energy into mechanical energy
I always say motor, but I digress. I believe both are correct.