You probably ought to call Serial.begin() in setup. Without that, nothing gets written to the serial port, or read from it.