Original: Karachi is linked by rail to the rest of the country by Pakistan Railways.
Simplified: Karachi is linked by railway to the rest of Pakistan.