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.