https://europa.eu/youreurope/citizens/travel/passenger-rights/air/index_en.htm#cancellation
If you were informed of the cancellation less than 14 days prior to the scheduled departure date, you have a right to compensation. The airline has the obligation to prove if and when you were personally informed that the flight was cancelled. If this is not the case you can contact your national authority for further assistance.
However, compensation is not due if the carrier can prove that the cancellation is caused by extraordinary circumstances which could not have been avoided even if all reasonable measures had been taken. The airline has to prove this by providing, for example, extracts from logbooks or incident reports. The air carrier should give this evidence to the relevant national enforcement body as well as to the passengers concerned in line with national provisions on access to documents.