Is the cold water turned on ?
It fills with cold water for the rinse cycle . if it does not fill it will just stop waiting for water.
ok good So I would assume the water valve is bad .
And need replaced .
May I get your units Model number to better assist you?
open the washer door it will be on the face frame of the washer.