Social democrats are supporters of capitalism, but think the state is needed to regulate the inherent biases of capitalism that are against the public interest. Socialism, in its purest form, wants to replace capitalism. Like everything else, there are variations and gradients of both.