Do you have the original key? A colleague with a toyota purchased it second hand and did not have the original 'master' key which has the magic computer chip inside it to talk with the security system.
Mechanic serviced car, did something with battery, car security system locked everything...
Hopefully yours is not this same issue.
Chris.