If you pull the stock, the safety action and sear engagement with the hammer are clearly visible. Try cocking the gun. If the problem is with the safety function, the problem should be obvious. If the hammer doesn't move back far enough to allow the sear to engage, the problem could be that the spring powered tensioning ball is missing from the bolt, the bolt was installed with just the spring and the spring is jamming the bolt. Its possible the cocking lug on the bolt that engages the hammer is badly worn or damaged and doesn't push the hammer back far enough. If the sear engages the hammer but doesn't hold, the sear hammer and/or trigger spring could be worn or defective. It's also possible that the gun is fouled with dirt and needs to be disassembled and cleaned out.