It helps if you post model number and product number if you can find them so we know what machine it is.
The more info you give us the more specific help can be given to you
Does the machine stop full of water
Does it spin
When in the program does it stick
Most programs have multiple parts ie lock, drain, fill, rinse and agitate, drain, fill heat and wash, drain, spin, fill, rinse, drain, spin and drain, unlock
Do any lights flash if so what ones and how many flashes