IAS (Indian Administrative Service) officers handle administration, policy and district governance.
IPS (Indian Police Service) officers handle law and order, policing and internal security.
Both are recruited through the UPSC Civil Services Examination.
Service allocation depends on your rank and stated preferences.
An IAS officer can become a District Magistrate; an IPS officer can become a Superintendent of Police.