Just a thought re: you switching it off for a while to get it to work.
I'm thinking that the drain pump is fitted with a thermal overload that's gone bad as a result of being jammed by those curtain hooks. Switching off allows it to cool and then it works for a while.
Only way to check is probably to change the pump.