I don't get my electricity wiring - 3 black wires 1 red wire 2 white 1 gray
In some cases, you just have to use a wire tracing tool.  These may be available for borrowing if you have a local tool library.  They come in two main types: the easiest to get versions require power be off.