The function performed by both state and federal governments is law enforcement. Both levels of government have their own law enforcement agencies that enforce laws and maintain public order.
Foreign policy and immigration regulation are primarily the responsibility of the federal government. School maintenance is typically managed at the state and local government levels, although federal funding and regulations can also play a role.