Unless it's an unreserved train (these routes are very few and far between), you would need to change your ticket with a ticket agent before boarding the train. When you make the change, you would need to pay the fare difference if there was any - it might be that the two trains are the same price, or you could have to pay more to change, or you might get a refund.