The Greater Anglia service crashed off the tracks in Essex less than 24 hours after a Southern Rail train's carriages flipped over in Sussex.