Starlin Castro provided the perfect remedy for a poor start by the Cubs.Castro had three hits, including a game-ending single in the 10th inning, and Chicago rallied past the Milwaukee Brewers 5-4 on Tuesday night. The winning run capped a late comeback as Jeff Samardzija (5-2), the last of six Cubs pitchers, won his second straight game in relief. Castro looped a one-out single to right off Tim Dillard (1-1) to score Tony Campana from third in the 10th. Campana opened the 10th with a double off Dillard and moved to third on Kosuke Fukudome’s sacrifice, bringing up Castro.Trailing 4-1, the Cubs scored three times in the eighth off Milwaukee reliever Marco Estrada. Castro doubled home Fukudome, and Aramis Ramirez followed with his fifth homer, a two-run shot that tied it 4-all. The rally spoiled a strong effort by Milwaukee ace Yovani Gallardo, who allowed three hits and struck out a season-high 10 in seven innings.The Brewers, who lost the first game of the series 1-0 on Monday, dropped back-to-back games for the first time since a seven-game losing streak from April 30 to May 6. Milwaukee maintained a share of the NL Central lead as St. Louis lost 8-6 at Washington. The Brewers scored twice in the third inning, sending eight batters to the plate while leaving three on base.Rickie Weeks led off with a single and scored the first run on Ryan Braun’s base hit. The Brewers then loaded the bases and scored again when Casey McGehee grounded to shortstop for a fielder’s choice that brought home Nyjer Morgan. Starting pitcher Randy Wells then walked Corey Hart to load the bases again, but escaped the inning when Yuniesky Betancourt popped up in the infield and Jonathan Lucroy flied to left. Fielder’s one-out sacrifice fly in the fourth brought home Gallardo for a 3-0 lead. Geovany Soto’s seventh-inning solo home run broke up the shutout bid.