To reduce the pressure exerted by train
They were used extensively, it is more common nowadays to use reinforced concrete or composite sleepers.
to reduce the pressure exerted by the train
To keep the rails at a certain spacing, and to spread the weight of the train over a wider area.
That large nail is called a railroad spike.
The width apart of rail tracks are set to the gauge of the trains and carriages that are allowed to run on those tracks. They are kept in position by wooden sleepers, though concrete sleepers are often used nowadays.
The rails themselves are metal. The 'sleepers' the rails rest on are often made from wood - as they flexes while the trains pass over them.
The gaps in the railway tracks are meant to allow the tracks to expand during Hot summers. the rising temperature causes the iron tracks to expand (Linear expansion due to Heat). If there be no space the Iron tracks may bent, as the expansion due to heat causes enormous force. this may even cause the tracks to break.It is only to avoid all of these effects, due to the linear expansion, that a small gap is maintained between joining tracks.Depends on the climate, the strength of the sleepers and the attachment between sleepers and rails.In (northern) Europe, it's quite common to use concrete sleepers and continuous rails. Concrete sleepers are stronger than wooden sleepers, and can withstand the forces of thermal expansion and still keep the rails in place.Weaker sleepers and continuous rails, thermal expansion can force the rails out of alignment with disastrous results.
To maintain the gauge. This is more or less the main purpose of the sleeper; if the rails just sat atop them they'd be effectively worthless.
To keep the rails at a certain spacing, and to spread the weight of the train over a wider area.
This is difficult to answer because depending upon the area and the railway, and era, the answer is different. The early railroads used wooden rails with steel straps on top, which was followed by iron rails. Initially, these were built on stone "sleepers", but later were built on wooden sleepers or ties. In the Southern US, many railroads were built on "stilts", essentially bridges because of the wetlands/swamps they travelled through.
To keep the rails at a certain spacing, and to spread the weight of the train over a wider area.