Do you really expect us to check your wiring using those pictures?
Do you know that a 'reasonable value' for the potentiometer is at or almost at one end of it's travel? The choice of end is NOT arbitrary.
Now about the code. For an initial test you don't want to aim at a moving target. Delete all of the 'clear' and 'delay' statements and then move all the remaining code from loop() to setup(). For this test loop() should be empty between the {} brackets.
I would certainly turn the knob on the pot meter (10k) first to the middle position and then up & down until the correct contrast is achieved. Wiring seems Ok.
Members, I thank you all for your insight into this problem. I admit i didnt clearly show you the connections clearly for you to analyze it. I apologize.
But guess what, The LCD has started working finally. i don't know how or why, i just lightly touched the wires, moved them a little and voila.. maybe the connections were lose or something. But it finally woks.