In an ideal gas, internal energy is a function of ONLY the temperature of the gas.
dU = dW + dQ, where dU=change in internal energy of the gas, dW=work done on the gas, and dQ=heat added to the gas (the First Law of Thermodynamics)
In an isothermal expansion:
The gas expands, meaning it does work. Therefore, dW is negative. However, since the expansion is isothermal, the temperature stays constant and dU = 0 (since U(T) only). Therefore, dQ must greater than 0.
In order for isothermal expansion to occur, heat must be added from the surroundings.
In an adiabatic expansion:
Adiabatic means dQ = 0, therefore dU = dW. Because the gas expands, dW is negative and dU is negative as well. Because U is a function of only T and a decrease in U means a decrease in T, temperature decreases in an adiabatic expansion. This does not happen in an isothermal expansion because heat is added to the gas from the surroundings to keep the temperature constant.
Hope this helps!