Sanchez homers in 14th, Giants beat Brewers 4-3