Before I start, I'd like to say that all four games had great endings. Now here I go:
First, I'd say Majora's Mask. The ending was really original, made you tense, kept you interested, and ended with a rush of relief and joy. The kind of ending that makes the rest of the game feel great and worth the time and effort.
Then, I'll say OoT. After working through Link's long journey, you make it to Ganon's Tower, fully armed and prepared, and you are blown away by an epic battle you don't expect. When you think you've defeated Ganondorf, the castle crumbles around you. Even after you make it to the bottom, you think it's over, only for him to rise from the ground and knock your Master Sword away like a toothpick. And the credits music was nice.
Then WW. I liked the water coming around, and it felt sort of cool to be this kid fighting a strong, evil wizard. Even though he would look like nothing to most, he's intimidating to you because of his great advantages over you. Then the King of Hyrule sacrifices himself to save the new Hyrule from the terror of Ganondorf. This game, to me, also had the best credit music.
And finally TP. Although Hyrule Castle was highly disappointed, you are faced by an eerily realistic Ganondorf. Midna tries unsuccessfully to protect Zelda, you think she dies, then there's a horseback battle, then a swordfight. Then you see Midna in her true form, but she SPOILER shatters the mirror and you feel Link's heart sink. Although Zelda doesn't play much of a full character in this ending, it was still pretty good. But as I've said, TP's music wasn't that great.