It is a combination of many factors, your faith,struggle,attitude towards life and links in this world, all these matter side by side. It is better that if you have it, but do not lose hope if you do not have it. Allah is here and He help those who help themselves. Think positive and seek guidence from Allah.