Step 1 (always):
Give us more information.
How long have you had it?
What is it's history?
What else is attached to it (what bicycle, what controller, etc.)?
Did it work before? How recently?
Apart from the symptoms you report, what else has changed recently - including collisions, component changes, etc.?
Did you change any serttings? Were you trying to get it to behave differently?