Heat energy supplied to a system either changes the internal energy of the system and/or enables the system to work
Internal energy is the energy associated with the random motion of particples.
-> Change in internal energy = heat energy supplied + Work done gas