If the USSD code to check your SIM number is not working, you can try restarting your phone and trying again. If it still doesn't work, you can contact the customer care of your respective mobile operator for assistance.