PHILADELPHIA -- Back at home, Nick Foles and the Philadelphia Eagles got back on track.

Foles threw one touchdown pass and led the starting offense to three first-half scores in a 31-21 victory over the Pittsburgh Steelers on Thursday night.

Steelers running backs Le'Veon Bell and LeGarrette Blount both played one day after they were arrested for marijuana possession shortly before Pittsburgh (1-2) traveled to Philadelphia (1-2).

Eagles All-Pro running back LeSean McCoy left the game with a right thumb injury after a 22-yard TD catch gave Philadelphia a 7-0 lead. X-rays on McCoy's thumb were negative, but he didn't return. McCoy showed no effects of a toe injury that forced him to miss one practice earlier in the week.

The Eagles' first-team offense had only one touchdown on six drives in road losses to Chicago and New England. But this was more like last year's offense that set several franchise records.

Foles was 19 of 29 for 179 yards and threw one interception. He led the offense to 17 points and 251 total yards before giving way to Mark Sanchez in the third quarter. Starting wide receivers Jeremy Maclin and Riley Cooper played their first game together, combining for nine catches for 68 yards.

The Steelers couldn't get going against Philadelphia's first-team defense. Ben Roethlisbergertossed a 27-yard TD pass to Heath Miller in the third quarter against the backups.

Roethlisberger finished 15 of 24 for 157 yards, one TD and one interception. Bell had nine carries for 23 yards and Blount ran seven times for 32 yards. Rookie linebacker Ryan Shazier had six tackles after an impressive debut last week against the Bills.

Foles got the offense rolling on the second possession. He connected with Maclin for 7 yards on third-and-5 and then hit Brent Celek for a 23-yard catch-and-run. A holding call on William Gaykept the drive alive when Foles threw incomplete on third down.

Foles then tossed a screen pass to McCoy on third-and-10 from the Steelers 22. McCoy did the rest, following a takeout block by Todd Herremans into the end zone for a 7-0 lead.

Foles completed seven straight passes after misfiring on six of his first 10 throws. He was 6 for 6 for 56 yards on the third drive, which ended with Darren Sproles running in from the 1 for a 14-0 lead.

Foles threw his third interception of the preseason when Troy Polamalu picked off a pass in the second quarter. The Pro Bowl MVP quarterback threw only two interceptions on 350 pass attempts last year, including the playoffs. He had 27 TD passes in the regular season, setting an NFL record for best TD/interception ratio.

Matthew Tucker had a pair of 1-yard TD runs for the Eagles in the second half.

Pittsburgh's Bruce Gradkowski threw a 33-yard TD pass to Darrius Heyward-Bey and a 3-yard TD pass to Martavis Bryant in the fourth quarter.

Game notes

Sanchez was 7 of 9 for 85 yards. ... Gradkowski was 8 of 11 for 105 yards and two TDs. ... Steelers K Shaun Suisham missed a 46-yarder wide left. ... Eagles K Alex Henery made a 36-yarder, but missed from 31. Rookie K Cody Parkey, acquired from Indianapolis on Wednesday night, made an extra point and had a couple long kickoffs. ... Nolan Carroll picked off Roethlisberger in the second quarter.

More From 97.3 ESPN