The phrase 'Wie geht's' requires the dative case for the pronoun. 'Ihnen' is the dative form of formal 'Sie', making 'Wie geht's Ihnen?' the correct formal phrase. 'Du' is nominative/informal, 'Sie' is nominative formal, and 'sie' (lowercase) is 3rd person singular nominative/accusative - none fit grammatically.