Jake Lamb's pinch-hit, three-run homer erased an early deficit and helped the D-backs past the Giants, 10-6, on Wednesday afternoon in front of a sellout crowd at Salt River Fields.