England celebrated their first Test win in Australia in close to 15 years as they chased down 175 runs for a four-wicket victory completed in two manic days.