The lifespan of your headphones depends on the build quality. However, the typical lifespan of a headphone is two years. Of course, that can vary if there is significant wear and tear or if wires get bent or otherwise damaged.
If you want your headphones to last, take care of them, always store them properly, and avoid twisting them inside pockets.