We still own an old-fashioned bicycle pump! If you put your thumb over the end and pump, the pump case becomes quite hot. Air is trapped inside. It is a closed system. But work can cross the system boundary. The work done gives extra kinetic energy to the air molecules. This extra internal energy manifests itself as a rise in temperature.