England went from a position of strength to a calamitous eight-wicket defeat on day two