I think it was a bad connection and broken wire.
I cut the rusted part and plugged a new wire and now it works.
Thank you