There are two understandings of olam haba, the world to come, one in the context of where the neshama (Jewish soul) goes after the body's death, the second in the context of the arrival of Mashiach (the Messiah).
The traditional chronology for the arrival of Messiah which links the ideas of your question (end of days, resurrection and the olam haba) as explained by the Rambam (Law of Kings 11:1) is as follows (taken from chabad here)
Moshiach will first rebuild the Temple and
then gather in the exiles. Jerusalem and the Temple will be the focus
of divine worship, and “from Zion shall go forth Torah, and the word
of the L‑rd from Jerusalem.”
The Sanhedrin — the supreme Jewish law court of 71 sage s —will be
re-established, and will decide on all matters of law. At this time,
all Jews will return to full Torah observance and practice. [...]
The Talmud discusses whether miracles will happen and again arrives at the conclusion
that, if we are meritorious, the messianic redemption will be
accompanied by miracles. However, the realization of the messianic
dream, even if it takes place naturally, will be the greatest miracle.
According to some traditions, G‑d Himself will rebuild the third
Temple. According to others, it will be rebuilt by Moshiach; still
others suggest a combination of the two opinions. Some suggest that
there will be two distinct periods in the messianic era: first a
non-miraculous period, leading into a second, miraculous period.
What will become of the world as we know it?
Initially, there will be no change in the world order, other than its
readiness to accept messianic rule. All the nations of the world will
strive to create a new world order, in which there will be no more
wars or conflicts. Jealousy, hatred, greed and political strife (of
the negative kind) will disappear, and all human beings will strive
only for goodness, kindness and peace.
In the messianic era there will be great advances in technology,
allowing a high standard of living. Food will be plentiful and cheap.
However, the focus of human aspiration will be the pursuit of the
“knowledge of G‑d.” People will become less materialistic and more
Maimonides writes, “Neither the order of the occurrence of these
events nor their precise detail is among the fundamental principles of
the faith . . . one should wait and believe in the general conception
of the matter.”
Following that first Messianic area, comes the resurrection area
[Following Moshiach arrival and the rebuilding of the Holy Temple in Jerusalem,]
the ingathering of all the exiles will then follow. The resurrection of
the dead will occur forty years after the exiles return to the Land of
Israel. Tzaddikim, the saintly righteous men and women of the
generations, are an exception to this rule; they will be resurrected
immediately with the arrival of Moshiach.
First the dead who are buried in Israel will rise from their graves,
they will be followed by the dead of the Diaspora, followed by the
generation that left Egypt and died in the desert. Last of all will
rise the Patriarchs and Matriarchs. Their resurrection is postponed so
that they should have the nachas of waking to find all their children
alive, well, and happy.
The categories mentioned above will also be further subdivided. The
more righteous individuals will be resurrected before the general
population. Amongst these righteous individuals, those who were
primarily preoccupied with Torah study will take precedence over those
whose forte was mitzvah observance.
For further reading see e.g., here on MiYodeya and here.