I'be forgotten the name of it but the railway that runs the east coast of England was nationalised for one year and made a decent profit the 2 years either side is was privatised and made huge losses.
It made a profit because it didn't have to pay a franchise fee. If you add in an equivalent franchise fee it was no more profitable than a private sector operator.