MOSFET: Cannot control gate signal using Arduino PWM
I will guess that you did not connect ground from the Arduino to ground for the MOSFET circuit. That is required.
I am assuming that the LED does light up when you close the switch.