Cooked chicken could be good up to 5 days, if it is in a sealed container. Raw chicken is best used within 1 or 2 days (this is arguable, some places say 2-4 days). You should store the chicken in the coldest part of the refrigerator for best shelf life or put it in freezer if not used within that time frame.
Thawed chicken should be cooked as soon as possible. If not using the chicken immediately, store in the refrigerator and use within 24 hours of thawing. Thaw frozen chicken using one of three methods: in the refrigerator; in a cold water bath, changing the water every 30 minutes; or in the microwave. If using one of the last two quick-thaw methods, cook the chicken immediately. NEVER thaw chicken at room temperature.
USDA recommends 1-2 days of refrigerated storage (40°F).
Depending upon the packaging of the chicken, how it was handled in-transit, and the temperature in the refrigerator, the chicken could last longer. For example, some refrigerators have a special meat storage drawer where the temperature is just under 32°F which will allow more shelf life.