How did the rebels crash the two space ships into the gate?
In Rogue One for the major assault that the rebels threw at the security planet, when the major rebel ships arrived, they started to try and shut down the security field.
When they did this, they pushed one enemy ship into another and by themselves they crashed into the gate-way ring that happens to be the only way onto the planet.
How did the destroyed ships sink down and collide with the gate-way from above, surely there is no gravity? Surely if there was gravity the gate-way would also have been pulled in?
The Rebels used "Lightmaker" - a "Hammerhead Corvette" aka "Corvette Five" - to push the damaged Destroyer into (through?) the other one and forced the one they were pushing into the gate. Note the trajectory of the ship being pushed and the proximity to the gate:
From "The Battle of Scarif":
...Along with four of his squad mates, Vander launched multiple ion torpedoes at a Star Destroyer, disabling it. Noticing the disabled capital ship, Admiral Raddus contacted a Hammerhead corvette and explained his plan to break open the shield.
Lightmaker, commanded by Kado Oquoné, evacuated all non-essential personnel, leaving a skeleton crew behind before Oquoné gave the order, sending his ship into the side of the disabled ship, sending it on a collision course for another one. As the two Star Destroyers collided, they broke apart and fell towards Scarif, crashing into the orbital docking station that controlled the deflector shield, disabling it. With the shield down, Erso and Andor were able to successfully transmit the Death Star plans to the Alliance flagship above Scarif.
In the film it didn't really "fall" or per your comment, "sink" - it was pushed really hard - note the thrusters on the hammerhead. The damaged Destroyer was "dead in the water" with no thrust of it's own. The inertial trajectory from the hammerheads thrusters was powerful enough to tear through the other Destroyer and carry the damaged one to its target. I don't explicitly see the Hammerhead fly away, so possibly this was a suicide mission?
Visual effects supervisor John Knoll mentioned there was much back-and-forth about whether the crew survived; cutting to shots of escape pods were deemed distracting by Gareth Edwards, so ILM merely implied they survived by not having the pods present during the collision of the disabled Star Destroyer with the Shield Gate. However, given the Death Star fires on the position where the pods would land, it's still unlikely any of the Lightmaker's crew survived.
Some additional info one the Hammerhead history and the Battle of Scarif:
Pictures about "How did the rebels crash the two space ships into the gate?"
Why do ships fall down in Star Wars?In Star Wars, we rarely see ships in orbit. They usually just hover over a single place. Rather than moving sideways to stay up, they utilize Repulsorlifts to accomplish this feat, directly counteracting the effects of gravity wanting to pull them down.
What planet is rogue one on?Lah'mu. Lah'mu is the first planet that we get to see in Rogue One. This is where the Erso family is hiding out from the Empire. The planet is far away from trade routes which contribute to the isolation of the planet.
How did the Death Star crash on Kef Bir (but not Endor)?
More answers regarding how did the rebels crash the two space ships into the gate?
You have to understand a few things about how gravity works, and also how technology behaves in the Star Wars universe.
First and foremost: there is gravity in outer space. Remember that objects in orbit are not weightless because of a lack of gravity, it's just that their forward velocity is so great that they're falling at the same rate that they're passing over a planet's surface. If you were to somehow throw the brakes on the International Space Station so that it stopped moving forwards at 7km per second, it would fall out of the sky like a brick.
Now, back to the Star Wars universe. Here, many space stations and ships don't appear to be placed in orbit at all - rather they use some sort of inertial dampener or repulsor technology to hold position. So the fleet that we see above Scarif, as well as the shield gate, are using engines to 'hover' in position above the planet. They are not in orbit.
Thus, when the Star Destroyer's engines were knocked out by the Y-wings' ion bombs, it was no longer being held in position. The Hammerhead Corvette gave it a nudge towards the second Star Destroyer, and they both tumbled towards the ground - because of gravity.
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Miguel Á. Padriñán, Pixabay, Kindel Media, Laker