You are just describing how it is currently. You don't get much from working, but if you don't you can't afford basic necessities and thus are punished for not working.
People tend to be motivated to work if they can see a viable benefit from the things they do for the community around them. This is something that capitalism desperately tries to hide and prevent, so people only see work as a purpose to make money for living