Hi,
If your washer is a Samsung B1445A then here’s the start of the [https://www.manualslib.com/manual/1074626/Samsung-B1445avgw-Ylw.html?page=17#manual|troubleshooting section] of the service manual.
Go to Item # 4 to view the possible causes of the problem. The following pages have circuit details etc which may help.
Here’s how to get to the [https://www.manualslib.com/manual/1074626/Samsung-B1445avgw-Ylw.html?page=24#manual|Driving Compartment test mode] which may also give some clues as to what is happening.
Hopefully a start.