"сам" - nominative case
"себя" - the same word in genitive or accusative case