There is a possibility that the crew might be “rerouted” and work another flight. In that case they would be paid for that new flight. Sometimes unionized employees will have some specific pay guarantees to mitigate any loss of pay in such a flight cancellation, but even then there is still some loss of pay.