Sheffield Hallam University run a Railway Engineering Degree, and are the only one to do so. The course is sponsored by various railway industry companies, including Network Rail, and includes 5 months of work placement per year. At the end of the 2 years (or 3 if you can/want), you will be offered a job. That is a very brief description of it, and you'll find more here:
www.shu.ac.uk/courses/rail
The course is difficult to get on because there are less than 50 places - experience on a preserved line would be highly advisable!
I am pleased to say I'm doing the course from September onwards, and have been offered a position as a Trainee Engineer at Volker Rail who are my sponsor through the course and employer after it finishes
.