HELP

I just moved in to my home and I installed a new kitchen sink sprayer, but now the faucet has stop running water. I can only get the water to work by using the sprayer (which is also leaking, I guess I didn't tighten it enough). Can some one please tell me what I may have done wrong?