Energy is always conserved but in a collision some, or all of the kinetic energy may be converted into other forms of energy such as sound and heat.
There are two extreme types of collision:
(a) elastic - a perfect collision, no kinetic energy is lost on impact
(b) inelastic – some of the kinetic energy is lost on impact
In real life most collisions are somewhere between these two extremes.