Actually, both options are not correct. You would want to say "I ride the train to work every day" or "I take the train to work every day." Remember to add the article "the" :).
"I ride on the train" isn't incorrect, but it sounds awkward, so I would recommend not using "on." However, you can say "I am on the train" or "he's on the train" and that would be fine.