Just to be sure, you tell us:
by changing network interface file to static and gave some static ips my internet stop working on guest operating system(virtual-box -> Ubuntu server).
The IP address you assign to your virtual Ubuntu Server installation is is the same IP range as your local network?
If you gave an IP address that is in another IP range (say, in the IP range 10.0.0.0/8 [10.0.0.1 to10.255.255.254]), your virtual Ubuntu Server machine won't be able to communicate with your router -- your router won't be able to correctly route packets from your VM to Internet and vice versa.
If your local network has the IP range 192.168.0.0/24 (192.168.0.1 to 192.168.0.254), you should assign an IP address that is free in this range (say, 192.168.0.50).
Another option you might want to explore:
my first adapter by default my network interfaces file get ip address by dhcp server but i want to setup an static ip.
If you only want your VM to have the same IP address (I mean: not necessarily having to configure your Ubuntu Server to use a static IP address, but your server should always respond to the same IP address), you might want to get some information about DHCP reservations, so your DHCP server would always provide the same IP address to your server.