Arduino with NEMA34 Stepper and Diriver

I found the problem. I didn't connected Encoders cable but Closed Loop motors encoders pins should be connected. I connected encoder cables and it is working now. Thank you everyone.