To be approved for a visa, you need to resolve the issues that are shown in the refusal letter.
These are:
A large deposit was made into your bank account which was not explained. This by itself is sufficient to cause your application to be refused. All deposits into your bank account need to have evidence of their sources included with your supporting documents.
Your residence permit expires in a few months. Pakistan might not extend the stay of Afghan refugees again, and the ECO is concerned that you might be looking for a third country to immigrate to. This also is sufficient by itself for a visa refusal. To overcome this you will need to change something about your "personal and economic circumstances in Pakistan" - whether this is making more money, or migrating to a third country, or returning to Afghanistan.
The ECO did not consider the documents you submitted regarding your family members sufficient to prove that they are currently living in Pakistan. You should obtain documentation which proves they are currently living and/or working in Pakistan, such as apartment leases, payslips, etc.