What is the function of the ball valve in the cooling system?

Allow or block refrigerant flow in one line, manually.
  Allow maintenance and / or replacement of components (filters, for example)
  Very low load loss when open.