If you're going to label a person a member of the Socialist or Communist groups (parties), then the words Socialist and Communist are proper nouns and should be capitalized.