Both are possible. 'Will/won't' can be used of willingness. John won't tidy his room (He is unwilling to do it, refuses to do it). If we use 'won't work' of an inanimate object, we are perhaps suggesting that that object is displaying stubbornness.
- For Teachers