There are two different types of energy, which are kinetic energy and potential energy. Potential energy is when something is still and not moving and storing energy. Kinetic energy is when the energy that was being stored gets released and that is when the object is moving.
This shows kinetic and potential energy.
In collisions, energy gets transferred one car to the other that collides with it.