Travis Head shone with the bat as Australia defeated England in the fifth and final Ashes Test at the Sydney Cricket Ground.