here's a quick and easy plan to get it going
At the wall plug, swap locations with the red and black wire. This will make the red wire the power wire and will have an eye on the end that hooks to switch.
Hook red wire from wall plug to center terminal on switch.
Hook red wire from motor to top terminal on switch.
Hook white wire from motor to bottom terminal on switch.
Connect black wire from motor to the white wire from the wall plug with a wire nut, This is the neutral wires.
Connect green wire from motor and black wire from wall plug to the ground terminal in the switch. I can't see the ground terminal in the switch and there may not be one. If not, find a place to attach them both to the frame of the machine or to the switch housing so the machine is grounded.
Plug it into the wall receptacle, flip the switch and test it out in forward and reverse a few times. If it works, you're good to go. The switch should have a detent to hold it centered in the off position.
I don't know if this was the original wiring configuration, but it should work just fine. I can see that a couple of the wires appear to have had a wire nut on them, and I also see what appears to be another wire laying in the tray that has a ring on the end of a black wire but that's all I can see of it and I don't know what its for so I did not include it.
Goodluck wid it!