Circuit and code works in simulation but not doing anything when done it real life

Read the reference of digitalRead(): https://www.arduino.cc/reference/en/language/functions/digital-io/digitalread/
It returns HIGH or LOW, so you can compare it with HIGH or LOW.

if (digitalRead(5) == LOW)     // okay, testing if that pin is LOW
if (digitalRead(3) < 1)        // not okay

I use a search for the reference of a function (Google, Bing, or any other).
For example, searching for "arduino servo" gives me the Servo library reference: https://www.arduino.cc/reference/en/libraries/servo/