Check the final layer of the model. It should have an activation suitable to classification task (sigmoid in this case) and 1 neuron. Loss function should be BinaryCrossentropy.
You can see this example of a binary image classification:
  
      

      keras.io
  

  
    

Keras documentation: 3D image classification from CT scans 2