Giants score six runs in final two innings, with Pence's three-run homer the big blow, for comeback win.