First, we need to install an empty magazine and dry fire the pistol so that the hammer is in the forward position, then remove the magazine. If that's been done, move on to the next possibility. Then make sure that the mainspring housing "lock" has not been engaged. You should have the key for that. If that's also OK, move on.
What you now need to do, is remove the grip panels. One of two things, either the hammer strut is stuck behind the lower sear spring pin, or worst case scenario, the mainspring housing latch pivot pin has drifted either right, or left, and will not allow the mainspring housing assembly to come out of the grip frame.
Easiest first. If the hammer strut is indeed stuck behind the sear spring lower leg, hold the pistol as if you are firing it, pull back as hard as you can on the trigger while you forcefully jam the muzzle end down onto a pine 2x4, or carpeted rug. Quite often, that will free up the hammer strut and the latch will now be able to open up.
Still stuck? What does work every time, is to knock the sear pin completely out of the grip frame. That will surely free things up on the inside and you will be able to get the mainspring housing assembly out.
Worst case. If the housing latch pivot pin has drifted either way, right ot left, I have a method I've used on a couple of Ruger Mark pistols, but I would need to have the pistol here.