The sign of the woman
Rev 12:1 And there appeared a great wonder in heaven; a woman clothed with the sun, and the moon under her feet, and upon her head a crown of twelve stars:
The woman is not Mary.
There appeared a great sign in heaven, one of seven signs of seven prominent personages.
Scripturally, this woman clothed with the sun should be identified with Israel, according to Joseph's dream (Genesis 37:9-11). In that dream, the sun represents Jacob (Israel), the moon represents Joseph's mother Rachel, and the eleven stars are the sons of Israel which bow down to Joseph. In this sign with twelve stars, Joseph is now "among" the other tribes of Israel. (Guzik)
Rev 12:2 And she being with child cried, travailing in birth, and pained to be delivered.
She, a daughter of Israel, gave birth to Jesus the messiah in a time of travail and Roman rule.
Gen 3:16 Unto the woman he said, I will greatly multiply thy sorrow and thy conception; in sorrow thou shalt bring forth children; and thy desire shall be to thy husband, and he shall rule over thee.
The birth of Jesus was different, because he was born of a virgin, conceived by the Holy Ghost. A man child in the likeness of God the Father.
Luke 1:35 And the angel answered and said unto her, The Holy Ghost shall come upon thee, and the power of the Highest shall overshadow thee: therefore also that holy thing which shall be born of thee shall be called the Son of God.
Isa 7:14 Therefore the Lord himself shall give you a sign; Behold, a virgin shall conceive, and bear a son, and shall call his name Immanuel.
John 1:14 And the Word was made flesh, and dwelt among us, (and we beheld his glory, the glory as of the only begotten of the Father,) full of grace and truth.