Why does the motion of a gas never stop?
It does stop, eventually. Well almost. Over an infinite period of time, the motion will approach zero. Consider a closed vessel in space containing a gas under pressure at room temperature. Since there is no such thing as a perfect insulator, the walls of the container will lose thermal energy to space and tend towards thermal equilibrium with the CMB temperature. When the gas molecules collide with the cooled vessel walls, they will transfer energy to the walls, which in turn radiate energy into space. This will reduce the average kinetic energy of the gas molecules and, therefore, reduce the temperature (and pressure) of the gas. Over eons of time, the CMB is also cooling and tending towards zero Kelvin as the universe approaches heat death due to the laws of entropy. The pressure of the gas will tend to zero as the age of the universe tends to infinity.
Just to elaborate a little, when individual gas atoms collide with each other, the collisions can be perfectly elastic as individual atoms do not have a temperature. However, when the atoms collide with molecules in the walls of the vessel, the molecules have intermolecular forces with other molecules in the walls, and kinetic energy from the colliding atom disperses in all directions inside the walls of the vessel, and eventually, the heat energy is dispersed into the vacuum of space.
When the universe eventually dies a heat death, there will not be anything with a temperature or pressure left, including our pressure vessel, which will die along with the rest of the universe. However, one of the laws of thermodynamics is that absolute zero can never be attained, so as the age of the universe tends towards infinity, the temperature of the universe (and the pressure of the vessel) will asymptotically approach zero.
If we were to put the pressure vessel in a room with fixed air temperature and ignore the heat death, no energy would be able to leave the vessel, and it would effectively act like a perfectly insulated vessel. When gas atoms collide with the walls, the molecules in the walls can gain some thermal energy. Since this additional energy in the walls cannot be exported to the room, other atoms will gain energy from the thermal oscillations of the wall molecules they collide with, and so the average kinetic energy of the gas atoms as a whole will remain constant. This means that the temperature and pressure of the gas in the vessel will remain constant, so we can consider the collisions between the atoms and the walls to be perfectly elastic as a collective property in this case.