Amphritite City Gym Glitch

I talked to the gym leader to battle him and after the diallogue my character wont move and none of the buttons work. I already used my other save files but they kick me back to way before in the game so is there any other way I can get around this bug?

You’re just going to have to start from earlier.

okay thanks