The 14th Beracha (blessing) in the Amidah is the Beracha of Tishkon Betoch Yerushalayim, where we ask Hashem to have His Shekhinah (Divine Presence) and His glory reside back in Yerushalayim. The first question about this Beracha is: Why are we asking Hashem, Tishkon Betoch Yerushalayim? Why do we say Tivneh Yerushalayim? Hashem wanted to rebuild Yerushalayim. And the answer is that we could go to Israel now and see Israel built up. We could see buildings; we could see yeshivot (yeshiva academies). You could even see the Kotel. But until you have the Shekhinah of Hashem back in Yerushalayim, we do not have the ultimate holiness of the land. So in this Beracha, we don't only pray for the building of Yerushalayim, but we pray for the restoration of the glory of Hashem's Shekhinah back into Yerushalayim.
Now, with that being said, we do say in the Beracha, Baruch Atah Hashem Boneh Yerushalayim, that Hashem, we want You to rebuild Yerushalayim. But the word Boneh, if you pay attention, is present tense: that blessed are You, Hashem, who's building Yerushalayim. Now, what do you mean? How is Hashem building? If you go now to Israel, you'll see a time of war. How do we see Yerushalayim being built? And the answer is that the way to rebuild Yerushalayim is through our actions, through our deeds. Hashem is constantly giving us the ability to do mitzvot (commandments) and to strengthen ourselves spiritually. By doing so, that is currently being Boneh Yerushalayim.
As it also says in the Beracha, we say, Uvneh Otah Binyan Olam, Hashem, you should build for us an eternal building, Bimhera B'yamenu, which literally means Bimhera, quickly, B'yamenu, in our days. However, the letter Bet can many times mean “because of.” B'yamenu can mean “because of our days.” Because of what we are doing now with our mitzvot and our growth, Hashem is going to rebuild Yerushalayim based off of our actions.
When thinking about this concept, it's very important to address the famous question of how we can build the Beit HaMikdash in our times. We know there's a concept called Yeridat HaDorot, where the generations get worse as time goes on. And if you don't believe me, just look outside; look at how corrupt and how immoral the society we live in is. How could it be that the great rabbis from the times of the Gemara, or the great Rishonim (early authorities), Rashi, and Rambam couldn't bring the Mashiach (Messiah)? How is it that we, in our generation, are able to bring the Mashiach? And the answer to that question is that the Mashiach can be brought by people who are very low. How do you know? Because if you look at the lineage of the Mashiach himself, Mashiach himself comes from someone who is very low. How do you see that? We'll give a couple of examples.
We know the Mashiach comes from the lineage of Rut, from David HaMelech. Where did Rut come from? Rut was a Mo'avi (Moabite). Where did Mo'av come from? Mo'av was the result of Lot when he had relations with his daughter. So you have an incest that's creating a child. Ultimately, that's going to create Rut. That's going to be the lineage of the Mashiach.
Where else? The Mashiach is from David. Who's David? David is the one in the story when Shmuel HaNavi went to the house of Yishai. Shmuel said, “I was told that the next king is supposed to come from your home.” Yishai brought out all his seven sons that came before David, his strong, big, tall sons. Shmuel said, “Oh, this must be the future king.” When Shmuel tried to anoint each one as the king by pouring the flask of oil on top of each one's head, the oil didn't come out until finally they brought out David HaMelech, who was a short little redhead kid. Yishai said, “It's not going to be the guy. He's a shepherd out in the field. He's not as capable as my other sons.” And when they went to pour the oil over his head, the oil came gushing out and said, “This is the future king. This is what's going to bring the Mashiach.”
When it comes to bringing the Mashiach, Mashiach comes from a very low place. So we live in a generation that's immoral. We live in a generation that's corrupt. That could be exactly the generation that brings the Mashiach. That's what we pray for. In this Beracha: Hashem, help us rebuild Yerushalayim. Hashem, let it come. Boneh Yerushalayim, currently through the deeds that we're performing. And B'ezrat Hashem (with God's help), I were low. That's exactly where the Mashiach comes from. It comes from the people who are low.