Hunter Pence drove in three runs, two of them on a fourth-inning triple, as the Giants built a lead that withstood a furious Tigers comeback for a 5-4 victory on Wednesday night at Comerica Park.