The nazis used most of that money to build their army. If they hadn't used that army, it would have been wasted money, which in no way could have repaid the debt.
Democratic governments can - and should - borrow to invest if they see an opportunity for future growth. But you can't create those opportunities out of thin air.