Hardware serial not working, SoftwareSerial is
There may be several reasons


Be sure uC pin connect pin header
In setup part, you write Serial.begin(xxxx);
After serial begin, don't change this pins IO features(Input, output)


Please check that after if not solve, please share code