How to make two arduinos (arduino mini and mega 2560)communicate each other

You have to connect both GND signals of the Arduinos.

On the Micro you should use Serial1, Serial connects to the USB.