Simple servo motor example with battery.

When I connect to 5v and GND pins to servo motor, Arduino has been shut down.

Use extra power for solution. You should use common ground between Arduino and battery. Otherwise signal pin won't work correctly.