England hook themselves into trouble in second Ashes Test