The crackle is most certainly because of the cord. Just try another cord, (or see if you can mess with your cord's position some to see if you can get contact). If it works, fine. If it doesn't, your amp has a problem :P
You can also try unscrewing the covers at the end of the cord and see if you can spot what's wrong. (If you can do that on that particular cord).