IP_SEC, It could be the amp or the guitar.
Try plugging another guitar into the amp. If it still exhibits the same behavior, it's your amp. If not, its the guitar.
Did you get the guitar and amp locally? Are they still under warranty?
Wish I was there, I could sort it out in minutes . . If it's the guitar it's most likely just a loose wire or broken solder connection. There really isn't much that can go wrong with a guitar. . If its the amp, it needs to go to an amp tech.
I do some guitar tech work part time. All my amps are tube amps, nothing ever goes wrong with them hat a tube swap or wiggle can't fix.
Keep us guitar geeks posted on what the problem is . . .