Can you tell me what can I do if someone stops breathing due to coughing caused by a cold or flu?

Call 911 or... Start CPR if you are comfortable to do so. However, apnea (stop breathing ) after cough spell due to cold or flu is very rare.