A Wigan man who damaged a police car and failed to provide a breath sample has been sentenced to a community order.