Linear momentum is always conserved in any collision (elastic or inelastic) when no external forces act. Temperature remaining the same is a condition stated in the problem, not a conserved quantity. Velocity and kinetic energy are NOT conserved - in inelastic collisions, kinetic energy is lost to deformation/heat, and velocities of individual balls change.