You are eligible for compensation when
The aircraft lands in an EU country (for European airlines only) or the aircraft departs from an EU country.
The plane arrives at the destination 3 hours later than planned.
The airline can be held responsible for the delay (no force majeure).
You have complied with the airline's check-in deadlines.