The Arduino does not execute commands when I unplug the Arduino.. It only executes commands when I press the restart button

Please post your full sketch, using code tags when you do