5 minutes ago, I swapped a working brain to non-working motor, and it did not work.
So the problem is in the motor.
The program is not able to finish. So, I guess the robot is sensing that it cannot do the movement and does not finish the program because of this.
I will try to find some spare motors now!
Thank you for your quick helo, Lok24.