washer starts fills with water then drains water without washing

hi guys,

my machine was working fine then it started filling with water then draining the water without washing the clothes. I have been told it could be my motor or the board. don’t want to spend any unnecessary cash so would appreciate a push in the right direction from anyone with this issue on this brand of machine.

Thanks