Tommy Pham knocked a two-run homer and added a triple as the Arizona Diamondbacks defeated the San Diego Padres 6-4 in the first game of their doubleheader.