HD44780 not displaying anything?

What Arduino board.

i am using arduino promini.

Does the backlight work?

yes as you can see in attached picture.

Post photos of the wiring and the LCD.

Post your code.

i have run hello world program from liquidCrystal Example.

#include <LiquidCrystal.h>

//LiquidCrystal lcd(RS, E, D4, D5, D6, D7);
LiquidCrystal lcd(7, 8, 9, 10, 11, 12);      // put your pin numbers here

void setup()
  {
  lcd.begin(16, 2);                          // put your LCD parameters here
  lcd.print("hello, world!");
  lcd.setCursor(0,1)
  lcd.print("it works!");
  }

void loop()
  {
  }

Have you tried adjusting the contrast pot?

yes i have tried and it shows only half blocks and within seconds its just fads away. you can see in image.

The correct way to wire the contrast pot is to wire one end of the pot to ground and the wiper to pin 3. The other end of the pot not connected. The long standing advice that the pot is wired to ground, Vcc and pin 3 is wrong. It is an error perpetuated over many years that begs correction.

I have tried it but the results are same. i shows only blocks for some thime and then they disappear.

Do you see a row of blocks on the top row of the LCD?

yes only half row of blocks, meaning 8 blocks in 1st row and 8 blocks in second row and it fads away within seconds.