Assuming that this is a tinkerer/hobby project and you know your odds of getting a daily-driver phone out of it aren't good:
You can get various Pi add-ons and USB-addressable cards that supposedly have texting and/or voice call capability. Look up a company called Sixfab. How well they work in practice, I don't know. Be prepared to immerse yourself in a large manual of AT commands and cell phone protocol stuff.