Answer
The internal energy of a closed system can increase when work is done on the system or when heat is transferred to the system from its surroundings.
Work Step by Step
Since no mass can be exchanged with a closed system, heat and work are the only sources of energy change.