I can figure out what is wrong with this simple sketch

Pins default to INPUT so if you want to output something you must use pinMode()