Which model car do you have?
Does it even try to open? Listen to the sunroof motor when someone tries to open the sunroof.
Have you checked the fuse?
Have you tried to crank it open to see if it's jammed or has a broken cable? This is usually possible from the trunk.