For humans who can survive an acceleration of about 3 g, you'd need a 1000 km long railgun in order to deliver enough energy.
For cargo a railgun a few miles long would probably be enough, but designing a missile which can survive surface air densities while travelling at orbital velocities would be very difficult.