5VDC Relay board help

I have been having this issue all day, and I've had enough. I'm pretty sure the answer is very simple, but I can't see it.

I have a relay board with 2 relays. I connect the VCC pin to the 5V pin on the arduino, and the GND pin to the GND pin on the arduino. Then I connect IN1 to a control pin (2).

Nothing happens

Whether I do digitalWrite high or low, nothing changes, relay doesn't click or light up.

I made it work a while ago, but now I can't.

You did of course use pinMode(mypin , OUTPUT) ?

And you are powering the said Arduino with 5 V?

Ok, now I feel stupid.

I didnt declare the pin as an output.

I think I rushed it and wrote digitalWrite(8,OUTPUT); instead of pinMode.

Thanks for the help