Have you already plead guilty or not guilty?
In some states, that is done by checking a box on the back of the ticket and mailing it back in. If you check the guilty box, you also send in the fine. If you check the not guilty box, then they mail you back your court date.
In other states, your court date is already on your ticket. In that case, the first court date is the arraignment, where you will be given the opportunity to make your plea. If you plead guilty, you can give some explanation to the judge, and he can at his discretion reduce your fine and/or arrange traffic school diversion (in those states that have that) based on your explanation and/or your previous driving record. Payment of the fine is due immediately but the judge may allow arrangements for that. If you plead not guilty, another court date will be scheduled for the actual trial or hearing.
At the trial or hearing, you do not speak first. The burden of evidence falls upon the state, not you, so the state will present its case first. Depending on the state, either the officer who wrote you the ticket will be present to testify against you, or he will have already provided the judge with a sworn affidavit. The officer will testify first (or the judge will read aloud from the officer's sworn affidavit). If the officer is present, you will be allowed to cross-examine his testimony (ask him questions) after he is done. Then you will testify on your behalf. It is extremely important (1) that you speak as little as possible and be direct and to the point, (2) that you present yourself properly by wearing nice clothes and speaking proper, respectful English and not use slang or profanity of ANY kind, (3) that you never admit guilt of any kind -- if the officer said you were doing 65 in a 55, do not counter by saying you were only doing 60, that is still speeding and you will still be found guilty, (4) that you stick to the point and that your testimony directly dispute the officer's testimony and little else, and (5) that you do not waste the judge's time or upset him in any way.
That's about as much help as I can give you. If you feel you need more, contact a lawyer. It is my opinion, however, that most traffic lawyers cost more than ticket itself and that they are of little value beyond possibly some good advice.
editted for minor typo