David Warner hit a 34-ball 59 as Australia defeated Pakistan