The North Midland Railway was a British railway company , which opened its line from Derby to Rotherham ( Masborough ) and Leeds in 1840 . The North Midland Railway was a British railway company , which opened its line from Derby to Rotherham ( Masbrough ) and Leeds in 1840 .