I have an old ebike which has a problem with a controller.
I want to replace controller but I can't find a controller with proper connector for a motor.
This is a connector which I have. How can I find a controller with same connector?
Cut off or unsolder that connector from your old controller and solder it to the new one. That gives you the opportunity to get the motor direction correct. You'd be gutted if you found a sensorless controller with that connector, only to find that your motor went backwards.