What happens if you work in the US without a visa?

That is illegal and if you are caught you could be deported. Also, if you entered US illegally, you can not obtain US Green Card according to the current immigration law, even if you married a US Citizen.