How do get a garage door opener to work correctly it use to work well but now it does not open but a few feet and at times will not close?

The guiding rod is out of line, Motors getting gunked up, Roller track is off or the door is bent.