Radio in and out

Factory radio or aftermarket?

Generally sounds like a loose wire behind the head unit, especially if it is an aftermarket one.. could also be the head unit failing.