Problem with power supply on arduino mega

When I connect my Arduino Mega with the USB cable the program is running perfectly well, but if I use an external DC 9V power supply nothing happens except that the leds on the board are on. I do use some Serial output for test purposes, but I did the same on other boards. The power supply worked fine on other Arduino boards. Is there someone with an explanation or with good advice? Thanks.