Your kid needs to be examined by a doctor immediately.
Did you give her any medicines for her cold? Cough
and cold medicines can make the child drowsy.
Since you say, she is pale, has a phlegm with shallow respiration, its a must to have her examined and get some investigations done as needed. All these may suggest she has a severe infection.