History shows that if at different times men were imbued with different ideas and desires. The reason for this is that at different times men fought nature in different ways to satisfy their needs and, accordingly, their economic relations assumed different forms.
Good read very simple explanation of how a person becomes a prole and how that effects their material conditions which in turn changes their consciousness dialect materialism in action.