You can buy a cheap pay as you go sim for £1. Don’t credit it. Put it in the phone and call that number from another phone. You can answer using the earpiece.
I found a solution for this. There is a free app called Test M. It tests everything on the phone. You don’t have to do all the tests if you don’t want to. You can just select the hardware icon and then test the ear speaker. A voice will say three numbers thru the ear speaker. They then want you to put the numbers in so the app knows it worked, but of course if you hear it, then your test is over.