washer hums when in normal wash and won't turn on

for the past 6 mo. my dishwasher began to get louder and louder to the point that you couldn’t hardly here the tv in the next room.Just a few days ago it just stopped going through cycles and won’t run at all.When you put it in any wash cycle you can here the water run for a few min. then it sounds like the motor tries to run but only here a slight humming noise.I can put it in the rinse cycle and it sounds like its pumping water out then stops running and all lights shut off.:confused: