Addison Reed had a tough time in the eighth though, and it led to the Yankees taking a 5-3 lead. But in the first of 10 key games between the AL East rivals in 24 days, Didi Gregorius and Todd Frazier followed Hicks' home run with RBI singles and Ronald Torreyes hit a sacrifice fly as the Yankees took a 5-3 lead and rebounded to close within 3½ games of the Red Sox.
The outcome gets the Yankees within 3 1/2 games of the Bosox with two games remaining in the series.
The left-hander is 1-0 with a 4.09 ERA in two starts against the Yankees this season.
Ryan Pressly (2-2) picked up the win after starter Kyle Gibson was unable to get the final out of the fifth inning.
It's now a seven-game winning streak for the Cardinals after Paul DeJong and Randal Grichuk carried the St. Louis offense in an 8-5 downing of the Braves.
Upping their record to 60-56 with a seventh straight win, the Cardinals got two doubles and three RBIs from Paul DeJong, plus two hits and two RBIs from Randal Grichuk. He retired all four batters he faced.
Boston were all about proving they did not have to make big moves to improve the team and were in line to do that before Aaron Hicks hit a two-run home run, which started the fateful rally that broke Red Sox fans' hearts.
Giancarlo Stanton belted his major-league-leading 40th home run and Derek Dietrich hit a tie-breaking single as Miami rallied to defeat Colorado. He walked two men in the first, but managed to escape the inning without allowing a run. Andrew McCutchen lined an RBI double in the Pirates' four-run second before leaving the game moments later due to soreness in his left knee.
Carlos Carrasco struck out 10 while giving up just two hits over eight innings of the Indians' 5-0 shutout of the Rays.
"Big-time - I mean, big-time - throw", fellow outfielder Brett Gardner said.
Ramirez, who has feasted on Yankees pitching this season and last, belted a 3-1 fastball off the back wall of the visitors' bullpen in left field in the first inning, staking the Red Sox to a 2-0 lead.
He proved that on a Miguel Cabrera fly ball in the Minnesota Twins' 9-4 win over the Detroit Tigers. Rosario put the Indians ahead with a three-run homer in the fourth, one inning after Kepler hit a two-run shot. Garcia lasted into the sixth inning.
Benintendi, whose bases-loaded walk against Chapman gave Boston a July 14 win at Fenway Park, hit a sacrifice fly to left that Hicks caught in front of the left-field warning track. Mike Moustakas slammed a pair of homers off Lopez, but Kansas City dropped five games back in the AL Central.
Jameson Taillon pitched into the seventh inning and Pittsburgh scored four unearned runs in the third inning of a victory over Toronto.
Texas rode a strong start from Cole Hamels and held off Houston late as the Astros lost their fourth consecutive game.