If the text is still live editable text, it should be easy to edit it with the text tool.
But if the text is converted to outlines, you need to delete the outlines and replace it with new text.
To see if the text is live text or outlines, change the View menu to Outlines.
Top: Live Text, Bottom: Outlines