LeBron James recovered from a slow start to score a game-high 35 points as the Miami Heat beat the San Antonio Spurs 98-96 to tie the NBA Finals series at 1-1.