to apologize it's the action, while to be sorry it's the feeling, so you use the second when you want share the fact that you're feeling sorry for something.
for example a friend tells you that he had a bad day, and you say you're sorry for him.
for the apologize you're actually doing the action of being sorry, something like that, i don't know if it's clear^^