The gun should close and latch without being cocked, so some problem is there. Numrich has about 3 pages of parts for H&R .22 Special in either 7 shot or 9 shot versions.
Click here, then click at the top to sort on the model number. The .22 Special comes up near the top.