An electrically operated displacement pump includes an electric motor having a stator and a rotor. The rotor is connected to the fluid displacement member to drive axial reciprocation of the fluid displacement member. A drive mechanism is disposed between and connected to each of the rotor and the fluid displacement member. The drive mechanism receives a rotational output from the rotor and provides a linear input to the fluid displacement member. A controller controls operation of the motor based on an operating state of the motor to control pumping by the displacement pump.