Sounds like an alarm issue caused by a flat battery? Is the battery in good condition?
What alarm is fitted to your car, the UK Meta alarms fitted do NOT prevent starting, but could cause the battery drain. Does the Code light flash when turning the key?