BOSTON, Massachusetts (AP) -- Xander Bogaerts hit a solo homer in the seventh inning, Boston's fifth long ball of the game, and the Red Sox rallied from a five-run deficit to beat the Texas Rangers 7-6 on Thursday night.
Five players homered for Boston, which outlasted Texas to earn a split of the four-game series. The finale lasted 4 hours, 6 minutes.
All seven runs for Boston came on homers. Jackie Bradley Jr. hit a three-run shot in the second and the Red Sox also got solo homers from J.D. Martinez, Michael Chavis and Rafael Devers.
Bogaerts was the last to go deep for Boston, driving a pitch from Peter Fairbanks (0-1) out to left and completing a wild comeback for the Red Sox, who lost the first two games of the series.
Brandon Workman (4-1) got the win with a scoreless seventh despite walking two as Red Sox pitchers struggled with their command throughout the long night.
Josh Smith, the eighth pitcher for Boston, hit the first batter he faced in the ninth but managed to keep the Rangers off the board and picked up his first save.
Elvis Andrus drove in three runs on three singles for the Rangers. Logan Forsythe hit a two-run double and Hunter Pence had an RBI double for Texas, which stranded 14 runners.
Texas tagged lefty David Price for six early runs and five hits. Price threw 49 pitches in just 1 1/3 innings before he was pulled.
But the Red Sox were able to slug their way back into it against Adrian Sampson, who won his previous five starts. Chavis homered in the fourth and Devers went deep in the fifth to tie it.
Martinez also hit a solo shot in the first off Sampson, who allowed four homers in five innings. He gave up six runs and seven hits.
Price struggled from the start, needing 38 pitches to get out of the first with the Rangers leading 4-0. He hit Shin-Soo Choo with a pitch and walked Delino DeShields before Elvis Andrus followed with an RBI single. Pence doubled off the top of the wall in right for a 2-0 lead, and Forsythe hit a two-run double.
Price struck out Jeff Mathis to start the second, but didn't get another out. He plunked Choo again, DeShields doubled and Andrus drove in both with a single.
OFF THE WALL
Pence hit a drive in the first that bounced high off the top of the short wall in right field and came back into play for a double. Crew chief Angel Hernandez called for a review to see whether Pence had actually homered. The call stood after the review, and Pence stayed at second with his fifth RBI of the series.
Rangers: Choo also was hit by a pitch in the eighth inning Wednesday and scored the tying run before Boston rallied to win 4-3 in the ninth.
Red Sox: 1B-DH Steve Pearce (lower back strain) will start a rehab assignment Friday with Class A Lowell. . LHP Brian Johnson, on the injured list since April 6 with left elbow inflammation, will get a start this weekend in Baltimore, likely on Sunday but possibly Saturday.
Rangers: Have yet to decide on a starter for Friday night when Texas opens a three-game set at Cincinnati.
Red Sox: LHP Eduardo Rodríguez (6-4, 5.00 ERA) faces Orioles RHP Andrew Cashner (6-2, 4.73) on Friday night at Camden Yards. Rodríguez is the only Boston starting pitcher with six wins this season.