Houston’s Terrence Jones (6) loses the ball as Phoenix’s Channing Frye defends in the first quarter in Houston. Frye, a former Arizona Wildcats star, finished with 14 points on 6-of-12 shooting and grabbed six rebounds in the Suns victory.

David J. PhilliP / The associated Press

HOUSTON — The Phoenix Suns did something against the Houston Rockets they had not done in their previous two games.

Every time the Rockets made a run at the young Suns on Wednesday night, Phoenix responded.

Eric Bledsoe had 20 points and seven assists to lead Phoenix to a 97-88 win over Houston on Wednesday night that snapped the Suns’ two-game losing streak.

P.J. Tucker added 18 points on 8-of-13 shooting with six rebounds.

Channing Frye had 14 points on 6-of-12 shooting and grabbed six rebounds, and Goran Dragic chipped in 19 points on 6-of-11 shooting for the Suns, who shot 45.6 percent from the field, including 45.8 percent from behind the arc.

“Throughout the year, we have had games where we have the lead in the fourth quarter,” Phoenix coach Jeff Hornacek said. “We have blown some, and as a young team, that happens. You want to see the progress where that doesn’t happen. They cut it down, and we could have gotten panicked where we forced shots, but we didn’t.”

Dwight Howard had 15 points and 18 rebounds for the Rockets, who lost their second straight game.

James Harden, who was guarded by Tucker, finished with 14 points, hitting 3 of 17 from the field and going 0 for 10 from behind the arc. Patrick Beverley had 12 points and eight rebounds.

Houston shot 35 percent from the floor and turned the ball over 23 times.

Houston coach Kevin McHale said the Rockets did not play very well.

“In the first quarter, Phoenix came up and got real aggressive with us and were denying us around the court,” McHale said. “We didn’t handle that very well, and then you compound that with shots not going.”

The Rockets opened the fourth quarter with a 13-2 run to cut the Suns’ lead to 75-74.

As they did throughout the game, the Suns responded, going on a 13-0 run over the next four minutes to expand the lead to 14 on Marcus Morris’ three-pointer with 3 minutes remaining.

Houston tried to answer, closing within 88-82 with 1:49 left on an 8-0 run.

“Playing on the road against the No. 1 offensive team in the league, you know they are going to make a run,” Tucker said. “It’s just one of those things where you keep playing hard and keep taking those shots. We started missing some shots, but we wanted to stick with it and pushing the ball back up.”

Again, the Suns would have an answer as Morris connected on a three-pointer from the corner followed by two free throws from Dragic to push the lead to 11 with 1:15 left.