Also try isolating the cable signal. I had a ground loop caused by my cable connection. Running it through a power strip solved my issue.

Just to be sure, also try swapping out the cable from the amp to the sub to confirm it's not a loose (or bad) wire.