Zachariah went to the temple to pray and an angel named Gabriel appeared to him and told him he would have a son. He was to name him John.
Mary Visits Elizabeth
Zachariah questioned the angel and doubted that this was possible. So, the angel told him that he wouldn't be able to speak untill this was fulfilled. When Zachariah exited the temple, he was speechless (literally).
John is Born
In Elizabeth's 6th month of pregnancy, the same angel that visited Zachariah went to visit Mary to give her similar news. She would give birth to the Lord and Saiviour of humanity, and she was to name his Jesus.
After recieving the news, Mary went to visit her cousin Elizabeth. When Mary got to the house, Zachariah greeted Mary and when Elizabeth hear this, the baby leaped in her womb, and then the Holy Spirit filled Elizabeth.
When Elizabeth was finally ready, she gave birth to a baby boy as the angel had told her. On the 8th day after his birth he was being circumsised. They were going to name him after Zachariah but Elizabeth said he was to be named John.
After everyone told Elizabeth that she couldn't name the baby John because nobody else in the family line had that name, Zachariah spoke up and said, "his name is John". On that moment the curse was lifted.