Washer will fill and wash, but not spin and empty

The washer will fill and go through wash cycle properly, but it stops and will not advance to the spin cycle (to spin and empty the water). It does this on all wash programs.