LM311 doesn't have a simulation mode, check the show only parts with models checkbox in the component selection screen so that components without model are filtered or you can just check in the right corner above the drawing of the component is it says "no simulation model"
For comparator with simulator model you can use the generic ones like COMPI, II, III or a device like LP311