You wired, most likely, the pot incorrectly. Post an image of your project all wired up and ready to go.
Next, notice there have been a request for additional info?
Post#2 has an important question that needs answering; most likely the poster is waiting for an answer. Post#5 has an important question that should be answered; most likely the poster is waiting on an answer.
IMAGE 1:
a. AudioJacks
Very Bottom Pins 5V+
Middle Pin Analog Right A5 - Left A0
Upmostpin Digital Pin Most Right D13 - Left 2 (All pins used here are NON PWM pins
b. Breadboard Sockets
Right Rockets All Grounds
Left Sockets PWM Left most pin 11 - Most Right pin 3 (All pins are PWM in order like the previous one)
IMAGE 2:
Audio Jacks: same connections
POT: Right Pin 5v
Middle pin Analog Output
Left GND
Switch: Middle 5v
Right Digital Output
led is just connected to the output oftheswitch
The arduino it just filled with wire
sorry for not drawing a diagram I don't have any schematic drawings