The electric motor of an EV is many times more compact than that of an internal combustion engine vehicle. For example, the 400hp electric motor of the Tesla Model S is about the size of a 6L beer keg. What looks like a classic industrial motor in my icons is a highly efficient electric motor that not only converts electrical energy into torque, but also reverses this process. He slows down the vehicle and recovers energy. (-> Recuperation) The motor is then connected to the wheels via a small 1-speed gearbox (reduction).
In modern electric cars, the electric motor is a three-phase motor, it needs AC power. There for is the inverter, it converts the DC power of the battery back to AC power for the motor. Overall, this is more efficient than a DC motor would be.