SOLVED Please help: Pins are not functioning!

And make sure you are not using Digital 0 and 1. They are "occupied".

And make a test code. A simple multi blink, like :

// check all digital pins except pin 1 and 0
// Those a reserved pins for Com link

const byte the_pins[12] = {13,12,11,10,9,8,7,6,5,4,3,2};

void setup() 
{                
  for (int i=0;i<12;i++)
  {
    pinMode(the_pins, OUTPUT);
    digitalWrite(the_pins, LOW);
  }    
}

void loop() 
{
  for (int i=0;i<12;i++)
  {
    digitalWrite(the_pins, HIGH);
    delay(1000);
    digitalWrite(the_pins, LOW);
  }  
}