Will my iphone lock if i reset it?

I've forgotten my trusted number for apple id, but if i reset my whole iphone & signin with a different id, will it lock the whole iphone or not?

Resetting a phone means it's pretty much straight out of the box. So it will erase everything and ask you for a new way to unlock.

If the iPhone is iCloud Activation locked, then you can reset it as much as you want, but the first thing it will ask for after being reset is the original Apple ID. It's a security measure to make stolen iPhones less valuable as they can't be used properly. You'd have to turn off "Find My Phone" before resetting it, or enter the ID and password it asks for after resetting it.