1989 90hp Johnson...........
Trace wires from electric PTT motor bacck to its plug in connector and unplug it. Run jumper wires directly from the battery to those two electric motor wires. Connected one way, the electric motor will run in one direction, reverse the wires for the opposite direction. If the electric motor functions perfectly every time you connect the jumper wires, then obviously the electric motor is okay.
Usually that type problem is due to either a loose connection, a tight but dirty connection, or an intermitent PTT switch..... Clean and tighten all connections including the terminals at the battery.
Let us know what you find.