A female cat, just like a male cat, can and will spray when on heat, or feel their territory is being threatened. They spray very strong-smelling urine to communicate with other cats in the area.
I have a can that won't spray, too. I just called the manufacturer to see if there was a quick fix. Check the white nozel first. Pull it off and make sure it is not clogged. If that doesn't work...