What happens if there is no activation function in some layers of a neural network?
If you do not specify an activation for a layer you are effectively creating a linear transformation through that layer.  From the documentation:

activation: Activation function to use. If you don't specify anything, no activation is applied (see keras.activations).