Complex sentence: If the containing walls pass neither matter nor energy, the system is said to be isolated and its internal energy cannot change.
Split into simpler sentences: If the containing walls pass neither matter nor energy, the system is said to be isolated. Then its internal energy cannot change.