SD and 16x2 LCD do not work together.

LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2);

Pins 11, 12, and 13 are the SPI pins. Those are generally the pins that are used to connect SD card readers.

How is your SD card reader connected to the Arduino?