Try another game if that works to see if it's the game or the 2ds that's broken. Replace the broken one by either getting it fixed by Nintendo or ask the place you bought it from.
open