I'm not super duper familiar with Germany so there might be some exceptions but in general there is a national infrastructure company (Network Rail, Prorail, DB InfraGo, etc), a national rail operator (DB, Renfe, SNCF, NS, PKP, etc), concession operators (Arriva, Transdev, Keolis, Abellio, etc)...