Cars need a motor because they convert chemical energy stored in gasoline into mechanical energy that powers the wheels. The internal combustion engine is the most common type of motor used in cars. It works by burning a mixture of gasoline and air in a cylinder, which creates heat and pressure that drives a piston. The piston is connected to a crankshaft, which converts the reciprocating motion of the piston into rotary motion. The rotary motion is then transmitted to the wheels through a transmission.
There are two main types of internal combustion engines: spark-ignition engines and compression-ignition engines. Spark-ignition engines use a spark plug to ignite the fuel mixture, while compression-ignition engines use the heat of compression to ignite the fuel mixture. Diesel engines are a type of compression-ignition engine.
Electric cars do not need a motor because they use an electric motor to power the wheels. Electric motors convert electrical energy stored in batteries into mechanical energy.