The reason for this is that the else loop is inside the 2nd if loop, due to which the condition for when the input is 1 is not getting checked. This code should work fine:
N = int(input("enter number:"))
if N%2 != 0:
if N >=2 and N<=5:
print (N, "Not Wired")
elif N>=6 and N<=20:
print(N," ->Wired")
elif N>20:
print(N," ->NotWired")
else:
print ("Wired")