In what sense doesn't it work though? Because from a re-offending rate it unequivocally does work.
In terms of preventing new crimes from being committed, I think the honest answer is "it depends". I think early intervention and preventing crime in the first place is always going to beat punishing people for crimes after the fact.