What happens if my flight is canceled or delayed?

What happens if my flight is canceled or delayed?