Some bugs in Pokémon Brilliant Diamond and Shining Pearl can cause you to get stuck in strange spots. Fortunately, you can revert your game to a previous save point. There are also a few other things to try before resetting your game.
Full story from the iMore Blog...
Full story from the iMore Blog...