It might have been your airline's fault if there was a technical problem, or they overbooked. You're unlikely to get compensation if the delay was because of something outside the airline's control, like bad weather or a security risk.