The problem is in the code you didn't post. Where is the declaration for lcd? Which library is this using?
Is this a serial LCD? You didn't actually say. But yes, in general, trying to run a serial LCD and the Serial Monitor won't work on many Arduinos. The Due, Leonardo, Micro and Teensy don't have this problem.