The airline is investigating the cause of why smoke filled the cabin as the plane was preparing to fly from Madrid to New York.