For flights to/from/within the EU, when a flight cancellation occurs, you are entitled to the same 3 rights as if you were denied boarding:
Compensation
A choice between rerouting, reimbursement, or rebooking
Assistance
For flights within the U.S., when a flight cancellation occurs, each airline sets its own compensation rules.