If your Dyson will not turn on at all, start with the charger, not the battery. A different outlet, dusty charging contacts, or a charger whose light never comes on are common causes, and they are all cheaper than a new battery. Work through the steps below in order, and give it a full charge before you judge it.
If it charges but will not turn on, or a flashing red light stays on after cooling and a full charge, the battery may need replacing. Contact Dyson support and tell them the light colour and how long you charged it.
My Dyson will not turn on at all, is the battery dead? Not necessarily. Try a different outlet first, then check the charger light and wipe dust from the charging contacts. Charge it for a full 3.5 hours before you judge the battery, because a flashing blue light just means it has no power.
How long should I charge my Dyson? Charge it for 3.5 hours. A solid blue light while charging means it is charging normally, and the light goes out when it is full.
Why does my Dyson die after a few minutes on Boost mode? That is by design. Boost mode gives maximum suction for a short time, about 5 to 8 minutes. If it dies in minutes on normal mode after a full 3.5 hour charge, the battery is the likely cause.
Dyson Vacuum Pulsing and Cutting Out · Dyson Vacuum Flashing Lights Meaning · Dyson Vacuum Lost Suction · Dyson Brush Bar Not Spinning