I have all the cables correctly because i change the cable of the pin it works and viceversa.
int led1 = 12;
int led2 = 11;
int led3 = 10;
Which part do you need help with? You haven't explained your problem particularly well.
Welcome to the forum.
Can you please post a copy of your circuit, in CAD or a picture of a hand drawn circuit in jpg, png?
Can you explain what help you need?
Are you perhaps seeing the result of not having a delay() after the digitalWrite(led3,HIGH); so as soon as Led3 is switched on the code immediately jumps to the top of loop() and switches it off again?