There could be a dozen different reasons why depending on what type of machine(front or top loader), make & model. If you give some details we may be able to help.
Lincoln Appliance NZ, September 2008
the mechine is washing will drain out then stops and will not spin