If you have given a statement for a case then there is always the possibility that you will have to attend court as a witness if the accused pleads "Not Guilty". You will be called as a witness in most cases if you are the complainant or if the defence want to question you about the issues contained in your statement. This should have been pointed out and explained to you at the time you gave the statement.