As already stated, be sure you have the correct input pin.
The pot should be connected as below:
- One end of the pot => 5V
- the wiper (center) => analog input pin
- Other end of the pot => gnd
Be sure you have this correct!! If you accidentally reverse the wiper and ground you will damage the pot.
Do you have a multimeter? If not I would suggest you look into getting one. Even a cheap one would help in this instance.
If you do, verify the analog input pin has a voltage you can set with the pot.