Welcome to iPhone Forums!
After creating a document in Pages, go to the icon at the top right (circle with three dots), select “Export”, and choose “Plain Text”:
View attachment 70515Then share and save it to the Notes app on your iPhone. You’ll find it as .txt file in the Notes app afterwards.
Hope that helps.