Ok, we're moving forward. The next step is to do the self-learning procedure. Connect the two green wires to the controller and also the LCD, battery and motor connectors. Don't connect anything else.
Lift the motor wheel off the ground, then switch on the LCD and wait. After a few seconds, you should see the motor turning slowly. When it does that you can switch off and disconnect the green wires. If the motor makes a normal turning noise, but the wheel doesn’t turn or if the wheel turns backwards, disconnect the green wires and reconnect them until you get the motor turningc forward.
After that procedure, we can look at your pedal sensor. First, you must make the connection right - black to black, red to red and then the two other wires together. Next, you have to make the correct orientation of the magnet disk. There are two ways you can install it (flip). With one orientation, it will only work when you turn the pedals backwards, and in the other orientation, it will only work forwards, which is the correct way.
Can you show or tell us exactly which type of pedal sensor you have because some can only be installed on the left side of the bottom bracket, others only on the right side, and most can go on either side?