The confusion arises because all three have websites where you can search for train times and see ticket prices. National Rail is the overarching national body, Southern is the company that runs the train, and Trainline is just a commercial reseller.