If it smells funky or off, it's spoiled. The smell is caused by the gases produced by the bacteria. Finally, ground beef can change color when it spoils, going from the familiar rust-red color (produced by iron, the same ingredient that gives blood its color) to a flat gray color.