The key is to reward people for doing good valuable work and route more of society's resources to them for productive use. The consequence of working badly or not at all can be a very modest life, it doesn't have to be starvation or homelessness.
Communism seems to assume everyone will want to work, and send out the murderous thugs when it doesn't go to plan.