Defeat at Headingley cuts Australia's series lead to 2-1, keeping England's hopes of winning the Ashes alive.