The first birth is the physical birth.
After that, the first three castes experience a second birth with the receipt of the sacred thread. After that they are Dvija – twice born.
The third birth is the initiation (diksha) into the teaching of a guru. After that they are Trija – thrice born.