Matt Cain was the biggest beneficiary of Hunter Pence's comeback performance, yielding two hits in six innings Monday night as the Giants ended their seven-game losing streak with a 3-0 decision over the New York Mets.