How to hard reset my iphone if my lock button is broken?

I have a broken lock button but my home button works. Is there a way I can do a hard reset with assistive touch? I have tried holding the physical home button while holding the lock button on assistive touch for 10 seconds, but it doesn't work.

Doing what you said you did should work so try it again for longer