Can you not follow the circuit diagram?
On the diagram, LCD pin 1 connects to ground, pin2 connects to +5V and pin 3 is your contrast connection.
You connect one end of the variable resistor to +5V, the other end to Ground, and the middle wiper contact to pin 3 on the LCD.
You could physically connect the variable resistor leads at the LCD pins 1 and 2 for ground and +5V, or connect them somewhere else to your supply lines. It does not matter.
Actually, it is usually better to include a fixed resistor as well, but for now let's just get it working for you as the diagram shows.