That's not really how contracts work. A contract is only "void" if it contains something fundamentally illegal, or if someone was forced to sign it. And that would be determined in court, not automatically.
The guy who promised to pay is breaching the contract by not paying, and the contractor's recourse is to sue him in civil court for the money.