Saying how the gravitational force would work is a bit tricky because there is currently no accepted theory of quantum gravity for reasons that are somewhat complicated. So I will just consider electromagnetism.
You wrote:
If we consider it to be at one point, just that it develops only when we observe, then how does the gravitational force and electric force work in this scenario?
In practice there is no such thing as an electron at one point in quantum theory. Rather, the electron's state is spread out over space. If you measure whether the electron is in a particular region the state will give you the probability of finding it in that region. If you perform an interference experiment with the electron all of the possible paths the electron could go down will contribute to the result. There is no account of what is happening in reality in which the electron is just at one point.
Nor does the electron develop only when you observe. There are well known quantum equations of motion and they don't say an electron develops only when observed. An observation is just an interaction that produces a record and it can be treated by the same equations of motion. It doesn't magically make electrons change. For some more details on how measurement can be understood see
https://arxiv.org/abs/quant-ph/0306072
There is a quantum theory of electromagnetism. I'm going to oversimplify a lot here. Suppose the electron is in a superposition of being in region 1 and region 2, its state might be a bit like this:
$$|\psi\rangle_e=|R_1\rangle_e+|R_2\rangle_e$$
If the electron interacts with another charged particle in the state $|B\rangle_{other}$ by its electromagnetic field, then if it was in region 1 the interaction would go like this:
$$|R_1\rangle_e|B\rangle_{other}\to|R_1\rangle_e|B_1\rangle_{other}$$
and likewise for region 2.
The relevant interaction is linear so you would get
$$|\psi\rangle_e|B\rangle_{other}\to|R_1\rangle_e|B_1\rangle_{other}+|R_2\rangle_e|B_2\rangle_{other}$$
The result of this would be that if you measured the electron and found it in state $|R_1\rangle_e$ you would find the other particle in state $|B_1\rangle_{other}$ and likewise if you found the electron in region 2.