When the transmitter is on then the motors should move but the motors are not moving and when i conect esc directly to the reciever then the motors are working
This answer of yours does not answer all my questions.
However what I can say is before motors start you need to ARM the flight controller. Are you doing it correctly? Generally there will be three leds on flight controller.
1. Indicates power to flight controller. -- mostly red.
2. Indicates receiver input is available(mostly available in latest flight controllers cannot tell in your case).
3. Indicates if the flight controller is ARMED or not.
What all do you notice and at what sequence do you see them?
**NOTE: Remove propellers when testing**