It is a form of a greeting. Used to say hello and bye. Even when a call is answered “Vanakkam” is the first word they say and not “hello”.
"வணக்கம் நீங்க எப்படி இருக்கிரீங்க?"
"Hello. How are you doing?"