Connect the button to pin 2. Make sure the black wire is on the outside and connected to the black pin.
Next, you can use this code to test the button. It should toggle the LED on and off.
const int buttonPin = 2;
int buttonState = 0;
void setup() {
pinMode(13, OUTPUT);
pinMode(buttonPin, INPUT);
}
void loop() {
buttonState = digitalRead(buttonPin);
if (buttonState == HIGH) {
digitalWrite(13, HIGH);
} else {
digitalWrite(13, LOW);
}
}