Shuts down in the middle of cycle.

The washing machine won’t do the rinse cycle. When the dial gets there the machine just stops & sits. Is it the control dial that is causing the problem & how do you replace it if so.
Thanks,
Reinsweetie