When using pin 3 and 5 as inputs, I get only 3.3v and I'm not able to use them as inputs. I use the same code and circuit on all the GPIO pins the circuit worked on every single pin except on this 2 can someone explain why?
What are you trying to connect to it?
They DO work as inputs e.g. if you connect a switch to GND.
These pins have 1.8k pullup to +3.3V, so high impedance circuits will have no affect.