San Antonio Spurs are one win away from clinching the NBA title after beating Miami Heat 114-104 to take a 3-2 series lead.