The phrase is “a lemon” or, more specifically in repair context, “a money pit”. If you mean a car that needs so much fixing that it’s barely worth keeping, people also say it’s “in rough shape” or “a clunker.”