My problem solved. I looked at error logs and ftp. I noticed that images are resizing but their entry is not adding in database table. I check the error logs. There was an error while adding entry in database.
From phpmyadmin I found that database table was corrupted. I repaired it from phpmyadmin interface and now everything is working find.