If you are not properly mirandadized, then what you told the police may be thrown out. Whether that is sufficient to dismiss the case is a question for your defense attorney.