Check the or charging IC – it may be a hardware issue, not firmware. Also, ensure you used a hot (recent) flash file, not a corrupted old one.

If you have forgotten your security password, flashing restores the default code, typically 12345 . Essential Requirements for Flashing

No, flashing with stock firmware does not SIM-unlock the phone. You need a separate unlock code.