Programming not working / serial interfacing not working

Let's start with the basics

You are not reading the state of the inputs anywhere in the code