In your case MUCH more is needed to offer an opinon. Without knowing what Id need to know, the best thing to be said is you need an ATTORNY! Get one asap.
I can tell you that many of the homes that go to the courthouse steps at auction never even tried to market and sell their homes. Tragic. Make sure to stay in front of the problem, talk to the lenders and of course this one may be for a good lawyer to look over. I have some suggestions if you like.
Blu dot Realty
The 3rd will need to pay off the 1st and 2nd so unless you have equity this may just be a ploy to get you to pay them first be careful.
Loan modifications on the 1st and 2cd will not stop the 3rd you better get the 3rd on board unless you can afford to pay them what you owe them plus be in a position to keep up with their payment when the other are modified.
Buy a home after foreclosure expert