Y= income ( provided by enterprises)
C= consumption of goods and services
S= savings
I= investments
Z= imports
X= exports
G= public expenditure
Ti= indirect tax revenue
XN= net exports (X-Z)
B= state transfers (aid and wages).
B-Td= state transfers minus direct taxes
You see this economic circuit I drew? This is supposed to represent that Y+ B-Td must necessarily be equivalent to C + I + G + XN
Y + (B -Td) = C + G + I + NX
and I = S
In this way an economic system can work perfectly. But in order to make it work perfectly, a Socialist State needs to fix the frequent dysfunctions due to individualistic choices (whether they are egoistic or in good faith).