lcd screen showing blocks even though wiring is correct

Malti,
You need to show the EXACT wiring you are actually using.
And do not change it or modify it after you show the wiring you are using.

The wiring in photo 20170409_120347.jpg does not appear to match the others.
For sure the wiring in 20170409_120347.jpg does not match the wiring in 20170412_082933.jpg
The colors of the wires being used are different and while the backlight and some pixels appear to be on in photo x347.jpg there are no visible connections to either the backlight anode or cathode.
Therefore these photos of are completely different wiring.

Details matter.
In cases like this where the LCD is not working, it is a wiring issue.
In order to get help, you must show how the LCD is ACTUALLY wired up and show it in a way that allows other to visually inspect all the wiring to look for issues.

--- bill