Internal energy and the first law
A gas's internal energy is the kinetic energy of its atoms, $U = \frac{3}{2}nRT$ for an ideal monatomic gas, and it changes only by heating or by work done on it, $\Delta U = Q + W$, which is energy conservation for a closed system.
From AP Physics 2.