How is map light post to work?

I might need to take a look at the brown wire, someone cut the switch plug in off & I had to get one from a parts car!