Most personal injury attorneys will handle your personal injury case on a contingency basis. That means that at the end of your case, whether it settles before trial or you receive a favorable verdict at trial, the attorney will receive a portion of your award as payment for the attorney's work. When the attorney signed up your case, you signed a Retainer which indicates what the attorney receives. The file's expenses are also reimbursed at the end of your case, if the Retainer so states.
If you have treated without insurance, your attorney is obligated to pay any medical/doctor's liens against your case. If you treated with insurance, the insurance company may have a right to reimbursement.
If you have borrowed money from a lender and have made your case the basis for borrowing the money, that lender must also be paid back from what you receive at the end of your case.
Having said this, it is important that you be aware of the documents you sign. I have had the experience of receiving a lien letter from a medical provider stating that a client has signed an agreement to pay for the medical treatment or diagnostic testing out of the final case award. However, there have been instances where we realize the client should not have signed any lien because the client's treatment was covered by insurance which does not allow a lien, such as the car insurance's No Fault coverage. This leads to phone calls and letters and the warning to be mindful of what you sign and ask what is paying for services because nothing is free.