I need to get my old number and put it on a new sim my speaker is not working so I can not call
Suggest you pop into an Optus store as they can swap SIMs on the spot.
Yep, what @petergdownload is the way to go.
Pop into your local Optus store and ask them to perform a SIM replacement.
It's a very quick process, you'll be in and out in no time.