Washer won't agaitate "sometimes"

This is a stackable unit. The washer started to not agitate at times, then work fine for awhile. Now it will fill, drain, spin but will not agitate at all. The motor is humming, but nothing is happening. Where should I start to diagnos the problem ? :eek: