Pleurisy is primarily caused by inflammation of the pleura, which can result from infections such as pneumonia or tuberculosis, autoimmune diseases like lupus, or malignancies. Pleural effusion occurs when excess fluid builds up in the pleural space, typically due to heart failure, cirrhosis, or infections. Pulmonary collapse, or atelectasis, can be caused by the presence of fluid in the pleural cavity, obstruction of airways, or lung disease, leading to an inability of the affected lung area to expand properly.