India defeated South Africa in the third IND vs SA T20I in Dharamsala to gain 2-1 lead in the five-match series.