It's ok. Do not freak out. You experienced your first error, congratulations. In magick, a lot of the time spells do not work out. There are many explanations as to why it went wrong/did not work, of which i will not go into detail.
You are new to magick, yes? Well i suggest you drink in as much knowledge as you can about the subject of witchcraft, and spell casting. Learn your basics (don't know what they are, feel free to browse the forums for posts explaining them, also have a look in the articles section of the site). You could join a coven on the site here, one that features people willing to help you and get you started on the right path. Performing spells takes knowledge, and an understanding of the energies around you as well as within yourself.