Use another familiar name-giving form and respond when you meet someone. Notice how the known question uses formal Sie.
Ich bin Anna is another natural way to introduce yourself: I am Anna. bin is the form of sein used with ich. Keep ich bin together and put your name after it. Compare Ich heiße Anna; both can give your name.
Wie heißen Sie? asks someone’s name politely. heißen means to be called; wie asks how. Capitalized Sie is formal you, for one person or several.
Freut mich means nice to meet you. It is a short, friendly response when someone introduces themselves; learn the expression as a whole.