So, I guess, if you really want advice you might start by giving us more details into the symptoms.
Are you positive the battery is good? Do you hear any noise when you depress the button? Does the electric lock work from the inside, just not from the outside? Did it work last year, and just recently quit? Did it ever work?