Accidentally locked my pc from my account
So as I was trying to figure out why my Microsoft password kept changing, I was an idiot and accidentally deleted and locked my pc account, thinking it was someone else’s pc… how can I fix this and get my account back? I’ve tried restarting, troubleshooting, almost everything I can think of. If anyone has any ideas what I can do PLEASE tell me.