How do railroad tracks function?

Can you answer this question?