If all the cables are hooked up correctly, and firmly secured, then to be sure of the culprit, you'll have to go through the elimination protocol.
Plug a line-source (e.g. CD-player) into one of the line inputs. Test.
Plug another phono source into the phono input. Test.
etc.