First, try to Factory Reset the phone. Turn if off then press Volume UP + Power until the recovery menu appears. Select Wipe data/Factory Reset and reboot it. Now the phone should be unlocked and working. Additionally, you might need to use a SIM card that is recognized by the phone because it's possible the phone is carrier locked which prevents you from using SIM cards from other operators.