Electric motor
Can an electric motor also produce electricity?
Yes, without changing anything about how it's built. Spin its shaft instead of powering it, and it becomes a generator. That's exactly what happens when an electric car brakes. The motor sends energy back to the battery.