Ge washer not engaging in high speed spin

Hey guys.

My washer stopped spinning clothes dry recently. It agitates and spins slowly but when it’s time to shift into high speed it just jerks back and forth for a few seconds before spinning slowly. The light on the motor flashes 4 times before stopping for a long pause. It also doesn’t dispense fabric softener.here is a short video of the washer

Can you please help me Id the part(s) I need to fix this problem?