My game won’t save on the N64 and I tried using both save functions

There is a possibility that you need an accessory to assist with this. Being that the console and game are so old, it's likely that the memory is/has deteriorated, causing issues when you save your game.

While it doesn't appear to be an SRAM game, that need a battery replacement, others have suggested a memory expansion for better performance of games such as Majora's Mask.