If the buzzing sound changes as you move your guitar around, it's probably something being picked up by your pickups. If wiggling your cord makes the sound change, you should have a close look at the plugs and jacks at both ends of the cord (ie: your guitar & your amp input).