How can a nation provide healthcare and a secure retirement funds for everyone?

When a population spends a lifetime working in a society and pay to insure its health, aging and death, you will expect this to occur without any sort of complications. It should be a simple and obvious matter. [...]