I try this circuit, it has one problem at state 1, is that when you connect the circuit, the motor turn on directly without pressing any button. how to solve this issue pleaseHere you go I figured it out in the end, probably worth checking of course . Just required some feedback from the second JK and a different initial state. This will now follow your required state diagram. Bear in mind this uses momentary (push to make) and not latching switches and you still need to determine your resistor values for the pull ups and base resistor and what NPN would be appropriate. Not sure what voltage (or current draw) your motor is but these TTL ICs need a 5 volt regulated supply so if your supply is higher than that for you motor you can just put a 7805 regulator in for the logic. You might also want to consider a general power switch further upstream in the circuit just so the power to the logic etc. isn't always on, unless you want it to be of course .
View attachment 102423