German: What's the difference between "Es tut mir leid" and "Entchuldigung" ?

They're both I'm sorry, but when do you use each? and also how do you say Excuse me ?
7 answers 7