Eric Gordon had 24 points as the Houston Rockets beat the Golden State Warriors 98-94 to take a 3-2 series lead.