How to cancel work order

when I try to cancel work order, the message below pops up, how can I deal with this?
“Stopped Work Order cannot be canceled, Unstop it first to cancel!Did not cancel”

Change the status of work order to reopen and try to cancel the work order