Use stock iPhone App called Voice Memos. Make a 15-20 second memo. Then play the memo, tapping the Speaker button you can test the Earpiece Speaker.
open