The main role of the U.N. is to maintain global peace; in the case of the Cuban Missile Crisis, the U.N. was Successful in maintaining peace.
The U.N. played a role in facilitating communication between the U.S. and the Soviet Union during the crisis, which ultimately helped to avoid a potential nuclear conflict.