Pakistan kept their hopes alive of reaching the T20 World Cup Super 8s after an unbeaten half-century from Mohammad Rizwan steered them to a comfortable seven-wicket victory over Canada.