In English, apology and sorry both mean sorry. What is the difference? Where are they used?

Apology is a noun, and sorry is an adjective. The former is used in more formal situations, while the latter is more widely used. Example:

I owe you an apology. I owe you an apology.

I'm sorry I'm late. Sorry I'm late.