Motor control h-bridge problems

Thanks, When I was controlling with analogWrite depending on which direction it would turn based on the distance values of the sensor, I had (lets use forward as an example) input A at 255 (100%) and input B 0. When it did work I was also able to change the duty cycle to slow the motor for example input A 64 (25%) and input B 0. Now that im having problems i get the humming regardless. When I tried digitalWrite and put input A HIGH and input B LOW the humming is still there but very faint. Still no spinning of the motor.