A vacuum cleaner's life highly depends on its usage and maintenance. Here are the steps you should take for better results.
If you have a battery-powered vacuum cleaner, Charge them properly before every use.
Change the dust bags when they are filled.
Clean the dust bins whenever needed.
Use the corded vacuum cleaners with care, because rough usage can affect the cord connection.
If you are using an automatic vacuum cleaner, read the user manual carefully before using it.
Do not try to use the battery-powered cleaners as the corded ones. The chargeable vacuum cleaners can not match the duty of a corded one.