You need to head to mossdeep city for your next gym badge.
Chat with our AI personalities
This is because you have to go in the cave at the top of the town then the gym will open.
Mossdeep city
you go to Petalburg city gym to get your fourth bage and surf
Go into the cutters house after getting the rustboro city gym badge.
Go to petalburg then walk into the gym its simple!