I have a three wire sumbersible pump. I can see the red, yellow and black wires coming up from the well, but I don't see any green ground wire. Is this safe? Should there be a ground wire coming up to the motor control box?
Yes, it's safe. The new code that came about sometime in the 80's added the green wire to submersible motors. Yours must be quite old by now and when it gets changed, the new one will require the four wires instead of three.