@avsb

I took the phone apart and found that the problem was with the switch inside the phone. Pushing it with a pen a few times seemed to release it. Now the button works perfectly. Thanks for the suggestion.

Darren