Complex sentence: Where the German defences and garrisons had been destroyed, the British infantry succeeded and where significant numbers of German machine-gunners survived, especially when supported by artillery, the British attack failed.
Split into simpler sentences: Where the German defences and garrisons had been destroyed, the British infantry succeeded. When significant numbers of German machine-gunners survived, especially when supported by artillery, the British attack failed.