いいえ is used at the beginning of negative replies to questions. Note that the affirmative sentence ending is replaced by the negative ending では ありません. N1は N2では ありません can stand on its own as a negative statement.
いいえ、わたしは ジョンでは ありません。
No, I'm not John.