This is normally a wiring issue.
Fortunately, what you should be doing has been written down. Unfortunately, beginners never seem to be willing to read it.