Don't force a stuck SIM tray: it can bend the reader inside.
1. Push the ejector pin straight into the small hole, firmly but gently.
2. If you lost the pin, a straightened paper clip of the right thickness works. Not a needle, which can slip into the wrong hole (often the microphone).
3. If the tray moves out a little but stops, the SIM may have shifted. Wiggle gently while pulling.
4. If it won't move at all, the tray may be the wrong one for this phone or bent. Open the phone to release it safely.
5. Always fit the correct tray for the model.
Keep a few spare trays for common models in the shop.