This is an important lesson for all of us.
This is the essence of being a Jew. The money quote:” With her passing, Moses had to assume her role. This teaches us that when other Jews are in physical or spiritual danger we should come to their aid, even if offering this type of assistance is not our forte. When we help others, G‑d in turn will help us with all our own needs.1Likutei Sichot, vol. 2, p. 335; Sefer HaArachim Chabad, vol. 2, cols. 186–187.
“Food nourishes the body, but the body needs water in order to absorb the nutrients in the food. Similarly, the “food” of the soul is the Torah and its “water” is the Torah’s ability to influence all facets of our personalities, all types of people, and all aspects of life.
When the Jewish people’s existence was threatened in Egypt, Miriam was the one who ensured that there would be a new generation of Jews to carry on G‑d’s mission. She both encouraged the Jewish people to continue having children and saved their newborns from Pharaoh’s decree. On account of her efforts to ensure that the Torah would continue to “flow” into the next generation, the well existed in her merit.
G‑d instructed the Jewish people to remain encamped at the border of the Land of Israel for 19 years after Korach’s rebellion. They then wandered in the desert for another 19 years, arriving at the border of the kingdom of Edom. On the 10th of Nisan 2487, Moses’ sister Miriam died. The Jewish people’s source of water – the miraculous well that had followed them in the desert – disappeared, for it had existed only in Miriam’s merit. G‑d subsequently restored it to the Jewish people in Moses’ merit.
The congregation had no water, so they assembled against Moses and Aaron. Numbers 20:2