If you are accused of breaking the law and are ordered to go to court, you will get a Duty Solicitor—a lawyer who is supplied to you for free. This is legal aid.
They will talk to you before your court case and will go to court with you to put your side of the story across. It's very important for you to tell them everything and be honest with them, so they can help you.
If you are under 16, you must have a parent or guardian with you in court. If they aren't there, it will hold up the process.