The practical way is to sue the contractor: a lawsuit is how you obtain money which someone owes you but is not paying. You would sue based on breach of contract: on them violating the agreement (whether written or oral/unwritten) to pay you for the work you did. Since you did the work, they are contractually obligated to pay.