India defeated South Africa by 48 runs in the 3rd T20I in Vishakhapatnam to end their losing run against Proteas and get back into the series.