SAN FRANCISCO (AP) -- Kolten Wong hit a sacrifice fly that capped a two-run comeback in the ninth inning and the St. Louis Cardinals rallied for a big win in their playoff chase, beating the San Francisco Giants 3-2 Saturday night.The Cardinals had lost three straight and held a team meeting prior to the game. Their win further tightened the NL wild-card race - the Giants and Mets are tied for the top two spots, with the Cardinals trailing by two games.Jedd Gyorko singled with one out in the ninth off Sergio Romo. Santiago Casilla (2-5) walked Yadier Molina before Randal Grichuk hit a tying single.Jose Martinez, pinch-running for Molina, took third on the hit and easily scored on Wong's fly.Seung Hwan Oh (5-3) retired six batters for the win.Brandon Moss hit his 27th homer for the Cardinals.Hunter Pence singled twice and Brandon Belt added an RBI double for the Giants, who fell five games behind the first-place Los Angeles Dodgers in the NL West.Giants starter Jeff Samardzija allowed one run and five hits with four strikeouts and four walks over 6 2-3 innings.St. Louis starter Mike Leake, who pitched his first career shutout during his final start of 2015 while with the Giants, allowed two runs over six innings.DEFENSIVE GEMMatt Adams might not be the most nimble of infielders but the Cardinals first baseman flexed his defensive skills in the second inning when he made a diving catch on Denard Span's liner, then quickly scrambled to the bag to double off Eduard Nunez. Adams later left the game after jamming his left wrist sliding into second base.GOLD MEDAL MOMENTOlympic gold medal-winning gymnast Aly Raisman, competing in nearby San Jose as part of a champions tour, threw out the ceremonial first pitch after spending time with several members of the Giants before the game. Raisman - who said she has only spent four days at home since returning from the Olympics - took pictures with Angel Pagan, and got tips from pitcher Johnny Cueto and hitting coach Hensley Meulens while sporting a Giants jersey. "I went to a lot of (Boston Red Sox) games with my dad growing up," Raisman said. "I'm excited to be here. It was crazy when I came here and players know who I am."