Not able to perform operations based on the data received to MCU through UART?
If you are sending an ASCII character "1", then your if statement should be 

if(data == '1')

as you have it, you are comparing the received character to the hex value 0x01 but the ASCII character '1' is 0x31.