Hi girl,
Work is normally thought of as a transfer of energy due to mechanical action such as a piston compressing the gas or the gas pushing on a piston as it happens in the motor of your car.
The formula for work is Work = force x distance , but in the case of a gas being compressed or decompressed, it can be shown that the formula above is equivalent to Work = (change in volume) x pressure.
If your gas in the container changed pressure but the volume stayed constant, then there was no work done (change in volume = 0).
Another way that energy can be transferred is trough heat, which is defined as a transfer of thermal energy.
As you can see, the previous post was wrong. There can be a change in internal energy without any work being done. If you take a closed metal or glass container with a gas in it and put it on the stove, it will warmup. Then the gas pressure will increase but because the volume stays the same, there is no work done.