For starters just follow the rails.
You should come to a control panel.
Examine the control panel.
There is a lever to the left of it.
It can be used to redirect the rails.
The switches on the control panel can be used to drive the mine car.