Using Serial imput to run a code

does anyone know how to fix this?