SACRAMENTO, Calif. (AP) -- A few key components were back on the court for the Houston Rockets, and it made all the difference Wednesday night.
Chandler Parsons scored 29 points and James Harden added 21 to lead the Rockets to a 112-102 victory over the Sacramento Kings.
Parsons and Harden, the team's two leading scorers, returned to the lineup to help the Rockets win their third straight and eighth in 11 games.
Parsons, who made 12 of 18 shots, had missed the previous game with food poisoning, while Harden had been nursing a foot injury. Harden also had nine rebounds and seven assists.
"It was great to have James and Chandler back," said Houston center Omer Asik, who had 19 points and 10 rebounds. "We knew we had to come in here and play hard. Sacramento has been playing well and they beat us last time. We had to come out tough right from the start."
Every game is an important one for the Rockets, who are in seventh place in the Western Conference, one game behind sixth-place Golden State, which defeated New Orleans. Both teams have seven games remaining.
Harden said his right foot felt fine, but his energy was a question mark. He showed plenty of energy in the opening quarter, getting off to a fast start with two 3-pointers and nine points to help the Rockets to a 27-26 lead.
"This was a big win for us on the road; we knew that Sacramento has been playing well lately," Harden said. "Golden State is doing a good job of keeping their lead and winning games. We need to do everything we can to keep winning going into the playoffs."
The Rockets received a solid game from point guard Jeremy Lin, who had 15 points and 10 assists. What the Rockets didn't expect was a big contribution from seldom-used rookie Terrence Jones, who had career highs of 14 points and 11 rebounds.
Jones has played just 12 games this season and had 91 total minutes entering the game, including only three where he played more than 12 minutes.
Houston coach Kevin McHale said Jones had a good practice Tuesday, so he decided to reward the athletic forward with playing time, which led to 29 minutes.
"What can you say?" Lin said. "You're a rookie and you go to D-League 10 times. You don't play at all and you come off the bench with a double-double and a huge road win. That has to feel great. I couldn't be happier for stories and people like that because you spend months and months waiting for your turn and he really capitalized tonight."
Tyreke Evans scored 22 points and Marcus Thornton had 21 for the Kings, who have dropped two straight. DeMarcus Cousins had 20 points and fouled out late in the fourth quarter. Jason Thompson added 17 points and 15 rebounds.
Sacramento entered the game with a 6-5 record over the last 11 games, including wins over playoff-bound teams Chicago, the Lakers and Golden State.
"Those three or four days we had off was kind of hard for us to come back and to be in real game rhythm," Kings guard Isaiah Thomas said. "We started off slow and it kind of haunted us all night."
After the Kings cut an 11-point deficit to five, the Rockets responded. With time running out on the shot clock, Lin made a 3-pointer and Asik followed with a three-point play, giving the Rockets at 112-101 lead with 1:42 remaining.
Lin said he passed the ball to Jones in the corner, but by the time he got it back the shot clock was ready to expire.
"I was thinking you better pass that ball back to me rookie," said Lin with a smile. "I got it back and I was going to swing it, but there were only two seconds left. So I decided I better shoot and I let it go."
Ahead by three points in the fourth, the Rockets scored six straight. Jones scored twice from close range and Harden had an emphatic breakaway dunk following a Kings turnover, putting Houston ahead 102-93 with 5:45 left.
"This was a very bad loss for us and our fans," Kings coach Keith Smart said. "We played, but we didn't create the opportunity to win on the floor. They made the plays that won the basketball game and we didn't."
Asik scored the first seven points of the third for Houston. He finished with 11 points in the period to help the Rockets take an 88-82 lead into the fourth. Following a quiet first half, Evans had a huge third quarter with 16 points.