There are a number of things that you can try if you have forgotten the code for your Motorola cable box. If you have not reset the code yourself, then try looking through the booklets and information that came in the box when you first bought your cable box. There is a good chance that something in that box will contain the code or information on how to get back a forgotten code.
If you cannot find any information about your code in the original box or if you have changed it yourself then your next best option would be to try and take it back to the store where you bought it from. A lot of hardware stores have a section specifically for fixing computers and other pieces of technology so visit them to see if they can help to solve your problem. If they believe that they can fix your device, then they may have to take it off you overnight or keep it in store for a couple of days whilst they work on it. Or they may just be able to fix it then and there for you!
If this doesn't work then you should contact Motorola directly, either through their website or their telephone number if you wish to speak to someone. You can probably find this somewhere on the information given to you when you bought the cable box or it will be listed on their website. It is likely that they have dealt with problems like this on a regular basis and probably still do so they may be able to help you out on the phone. If they give you a couple of things to try out they will probably stay on the phone with you whilst you test them just to make sure that they do work.
If you cannot find any information about your code in the original box or if you have changed it yourself then your next best option would be to try and take it back to the store where you bought it from. A lot of hardware stores have a section specifically for fixing computers and other pieces of technology so visit them to see if they can help to solve your problem. If they believe that they can fix your device, then they may have to take it off you overnight or keep it in store for a couple of days whilst they work on it. Or they may just be able to fix it then and there for you!
If this doesn't work then you should contact Motorola directly, either through their website or their telephone number if you wish to speak to someone. You can probably find this somewhere on the information given to you when you bought the cable box or it will be listed on their website. It is likely that they have dealt with problems like this on a regular basis and probably still do so they may be able to help you out on the phone. If they give you a couple of things to try out they will probably stay on the phone with you whilst you test them just to make sure that they do work.