It depends. Ironically, cheaper phones are more likely to still have headphone jacks. Pretty much most entry level phones have headphone jacks, but they suck in literally every other way...
because some dont get security and feature/bug updates. for that i recommendeed simply to install something like e/os as an operating system (OS). It sometimes still support 10+ year old phones and likely continue to support them for a while.
The tech started to get so good that old phones are good enough so refurbishing them with another OS and not to trash them like profit focused companies want.
While I'm kinda pissed that my skullcandy cassette headphones are cracked on both ears and I had to cover them in superglue... the battery lasts a long time. I charge them once a month. But I also don't use them unless I'm on the toilet lol... otherwise I just listen to music on my Bluetooth speaker or not at all.