Command economy is when the government determines the goods that should be produced, rather the free market. This is a key principle in any communist society.
Socialism is a social and economic system characterised by social ownership and democratic control of the means of production.