sorry for not attaching the schematics..
I was actually making a remote control for a 12V dc motor. The RF remote was working properly . But when I connected the data pins from the rf to the input pins of the motor controller it wasnt working. So i decided to check the motor controller. I found that when I supply either INPUT A or INPUT B with +5V, the motor was not working . But when i connect 'gnd' to either of the INPUT pins the motor was working. So instead of +5v , I had to use 'gnd' to control the motor. Is this beacuse the IC is defective or there is something else wrong.The problem is the RF data pins provide only +5V only. ( For testing the circuit i used 4x AA type batteries and the output voltage was about 5.6V and I used the same source for the motor as well as for the motor controller)