Salvation or freedom from the worldly life and the cycles of birth and death is based on the law of karma - the law of cause and effect. Good or bad behaviour or action leads to an appropriate reward or punishment. It is by becoming aware of one's actions and the impact thereof on one's life, now and the next can one realize the True Self, and move a step closer to Salvation.
A person can attain salvation only by performing the right action, having a feeling of compassion, and acquiring knowledge of the Self. While a learned teacher, an enlightened one can show the way towards self-realization, merely listening to discourses, reading religious texts or performing austerities cannot lead to salvation. Salvation cannot be taught, it cannot be learnt, it has to be attained.