Question: what do i do after beating team magma at the space station?
Answer: Defeat all the Magma Grunts and then talk to Steven. Select three Pokemon and you will enter a 2 vs. 2 battle with Steven on your side. After beating them, head to Steven's home in the north west of the island and he will give you HM08 - Dive.