Alek Thomas hit a tying, two-run homer in a three-run eighth inning, Gabriel Moreno followed with a go-ahead single and the D-backs stunned the Philadelphia Phillies with a 6-5 victory on Friday night that tied the NL Championship Series at two games apiece.