The problem of Steering gear and ESC

When I conected the ESC to pin 2 and let the steering gear to pin 4 it can’t work,but when I connected the steering gear to pwm2 it will work correctly.Why they can’t work at some time.Here is my hardware.Please help me,please.Sorry my English is poor.