LM311 output stays at Vee regardless of input voltage
Go over your connections on the hardware and make sure they are connected to the right pins/ wires/ components/etc. 

I’ve connected everything together with a circuit I worked on and thought everything was fine, then the circuit is misbehaving. Two hours later I find out a resistor is connected to the wrong pin, changed it and everything was fixed!