A few setbacks don’t define your financial future — with steady habits, you can restore your score and regain lenders’ trust.