Canon EOS M not recording

My canon EOS M doesn’t want to record or take any pictures. I press the record button and nothing happens. Also, when I go to adjust the aperture it says I can’t because it says “no lens attatched. Is that why it doesn’t let me record? What can I do