Question on Airplanes

i tried posting this before but i dont think it posted right, so if its still out there its okay to delete this.

Can a plane fly vertically, if so how long is it possible for it to fly that way? What is it called when a plane flies that way?

Also, whats it called when a group of planes tilt their wings vertically and start going down? usually seen in war movies when the planes are in the air.