The function of an electric motor is to change electrical energy into
kinetic energy.
Even if you want to use the electric motor to give a heavy weight a lot of potential energy, by lifting it up onto, say, the roof of a house, you still have to use the motor to MOVE the weight. So you're still giving it kinetic energy as an intermediate step..