Tommy Pham's walk-off single in the bottom of the 11th inning lifted the host Pittsburgh Pirates to a 5-4 victory over the New York Yankees on Sunday afternoon.