Summary:

Roads and railroads cut a unit's movement cost in friendly or neutral territory. As long as the unit moves from one tile containing a road/railroad into another tile containing a road/railroad, the unit will expend just a fraction of the normal cost to move. As long as the unit has any MPs left, it can continue to move along the road/railroad.