Why didn't the battle of fromelles win?

The battle of Fromelles didn't work because the British troops didn't have enough experience in trench warfare and the attack was rushed. The other reason the battle failed for the British was because they were out numbered by the Germans.