In Germany everyone has to have ID on them and the police can check your ID when they want to.
Schengen states can check your passport and resume border control when it's necessary. For example, border control to Germany was resumed during FIFA World Cup in 2010.