Equilibrium states for mean field models