There is no story event involving a broken music box that Naruto repairs in Naruto: Ultimate Ninja 5.
A hidden collectible called "The Music Box" exists in the game, but:
You may be conflating this with another game (e.g., a music box quest in an RPG) or a different Naruto title. If you recall more context (character, location, cutscene), I can help identify the correct game.